/* ============================================================
   RAILENQUIRY.IN — PREMIUM DESIGN SYSTEM  (re-theme.css)
   Load LAST — after bootstrap, ProUI css and all modern-*.css
   Palette: Navy #0D2B4E  ·  Saffron #F97316
   Fonts:   Plus Jakarta Sans (display) · Inter (body)
   ============================================================ */

/* ----------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------- */
:root {
  --re-navy:          #0D2B4E;
  --re-navy-mid:      #1A4A7A;
  --re-navy-dark:     #081E3A;
  --re-navy-surface:  #0A2240;

  --re-saffron:       #F97316;
  --re-saffron-dk:    #EA580C;
  --re-saffron-lt:    #FFF7ED;
  --re-saffron-bd:    #FED7AA;

  --re-white:         #FFFFFF;
  --re-surface2:      #F8FAFC;
  --re-surface-alt:   #F1F5F9;

  --re-border2:       #E2E8F0;
  --re-border-dk:     #CBD5E1;

  --re-text2:         #1E293B;
  --re-muted2:        #64748B;
  --re-muted-lt:      #94A3B8;

  --re-success2:      #16A34A;
  --re-success-lt:    #F0FDF4;
  --re-success-bd:    #86EFAC;
  --re-danger2:       #DC2626;
  --re-danger-lt:     #FFF1F2;
  --re-danger-bd:     #FECACA;
  --re-warning2:      #D97706;
  --re-warning-lt:    #FFFBEB;
  --re-warning-bd:    #FDE68A;
  --re-info2:         #0EA5E9;
  --re-info-lt:       #F0F9FF;
  --re-info-bd:       #BAE6FD;

  --re-display:       'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --re-body:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --re-mono:          'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --re-r-xs: 4px;  --re-r-sm: 6px;  --re-r-md: 10px;
  --re-r-lg: 14px; --re-r-xl: 16px; --re-r-2xl: 20px;
  --re-r-full: 9999px;

  --re-t:      all 0.15s ease;
  --re-t-fast: all 0.1s ease;
  --re-t-slow: all 0.25s ease;

  --re-shadow-1: 0 1px 2px rgba(13,43,78,0.06), 0 1px 3px rgba(13,43,78,0.08);
  --re-shadow-2: 0 4px 14px rgba(13,43,78,0.09);
  --re-shadow-3: 0 12px 32px rgba(13,43,78,0.14);
}

/* ----------------------------------------------------------
   2. GLOBAL BASE
   ---------------------------------------------------------- */
body {
  font-family: var(--re-body) !important;
  color: var(--re-text2) !important;
  background-color: var(--re-surface2) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(249,115,22,0.25); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--re-surface2); }
::-webkit-scrollbar-thumb { background: var(--re-border-dk); border-radius: var(--re-r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--re-muted2); }

h1,h2,h3,h4,h5,h6 { font-family: var(--re-display) !important; }

/* Kill any leftover ProUI sidebar spacing */
#sidebar { display: none !important; }
#page-container,
#page-container.sidebar-mini,
#page-container.sidebar-visible-lg-mini {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
#main-container { margin-left: 0 !important; }

#page-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 36px !important;
  background: transparent !important;
}

/* ============================================================
   3. NAVBAR  (.re-nav)
   ============================================================ */
.re-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--re-white);
  border-bottom: 1.5px solid var(--re-border2);
}

.re-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo */
.re-nav__logo {
  display: flex;
  align-items: baseline;
  text-decoration: none !important;
  font-family: var(--re-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.re-nav__logo:hover { text-decoration: none; }
.re-nav__logo-rail { color: var(--re-navy); }
.re-nav__logo-enq  { color: var(--re-saffron); }
.re-nav__logo-in   { font-size: 12px; font-weight: 600; color: var(--re-muted-lt); margin-left: 2px; }

/* Links */
.re-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.re-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--re-r-sm);
  font-family: var(--re-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--re-muted2) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: var(--re-t);
  background: none;
  border: none;
  cursor: pointer;
}
.re-nav__link i { font-size: 13px; opacity: 0.75; }
.re-nav__link:hover {
  color: var(--re-navy) !important;
  background: var(--re-surface2);
}
.re-nav__link--active {
  color: var(--re-saffron-dk) !important;
  background: var(--re-saffron-lt) !important;
  font-weight: 600;
}

/* Dropdown */
.re-nav__dropdown { position: relative; }
.re-nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--re-white);
  border: 1.5px solid var(--re-border2);
  border-radius: var(--re-r-lg);
  box-shadow: var(--re-shadow-3);
  min-width: 220px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: var(--re-t);
  z-index: 1040;
}
.re-nav__dropdown:hover .re-nav__dropdown-menu,
.re-nav__dropdown--open .re-nav__dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.re-nav__dropdown-menu--right { left: auto; right: 0; }
.re-nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--re-r-sm);
  font-family: var(--re-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--re-text2) !important;
  text-decoration: none !important;
  transition: var(--re-t-fast);
}
.re-nav__dropdown-item:hover { background: var(--re-surface2); color: var(--re-navy) !important; }
.re-nav__dropdown-item i { font-size: 14px; color: var(--re-muted2); width: 16px; text-align: center; }
.re-nav__dropdown-sep { height: 1px; background: var(--re-border2); margin: 4px 6px; }

/* Right cluster */
.re-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Train quick-search in navbar */
.re-nav__search {
  display: flex;
  align-items: center;
  background: var(--re-surface2);
  border: 1.5px solid var(--re-border2);
  border-radius: var(--re-r-md);
  overflow: hidden;
  transition: var(--re-t);
  width: 210px;
}
.re-nav__search:focus-within {
  border-color: var(--re-saffron);
  background: var(--re-white);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}
.re-nav__search input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-family: var(--re-body) !important;
  font-size: 13px !important;
  color: var(--re-text2) !important;
  flex: 1;
  min-width: 0;
}
.re-nav__search input::placeholder { color: var(--re-muted-lt); }
.re-nav__search-btn {
  height: 36px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--re-navy) !important;
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: var(--re-t);
  text-decoration: none !important;
  flex-shrink: 0;
}
.re-nav__search-btn:hover { background: var(--re-saffron) !important; color: #fff !important; }

/* Live badge */
.re-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--re-saffron-lt);
  border: 1px solid var(--re-saffron-bd);
  color: #C2410C;
  font-family: var(--re-display);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--re-r-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  user-select: none;
  white-space: nowrap;
}
.re-live-dot {
  width: 7px;
  height: 7px;
  background: var(--re-saffron);
  border-radius: 50%;
  flex-shrink: 0;
  animation: re-pulse 1.8s ease-in-out infinite;
}
@keyframes re-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(249,115,22,0.4); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 4px rgba(249,115,22,0); }
}

/* Login button */
.re-nav__login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: var(--re-r-md);
  border: 1.5px solid var(--re-navy);
  background: transparent;
  color: var(--re-navy) !important;
  font-family: var(--re-display);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--re-t);
  white-space: nowrap;
}
.re-nav__login:hover { background: var(--re-navy); color: #fff !important; }

/* User chip (logged in) */
.re-nav__user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--re-r-md);
  border: 1.5px solid var(--re-border2);
  background: var(--re-white);
  color: var(--re-navy) !important;
  font-family: var(--re-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
}
.re-nav__user:hover { border-color: var(--re-navy); }

/* Hamburger */
.re-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.re-nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--re-navy);
  border-radius: 2px;
  transition: var(--re-t);
}

/* Mobile drawer */
.re-nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--re-white);
  border-top: 1px solid var(--re-border2);
  padding: 12px 16px 20px;
  gap: 2px;
  max-height: calc(100vh - 62px);
  overflow-y: auto;
}
.re-nav-mobile--open { display: flex; }
.re-nav-mobile__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--re-r-md);
  font-family: var(--re-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--re-text2) !important;
  text-decoration: none !important;
  transition: var(--re-t-fast);
}
.re-nav-mobile__link:hover { background: var(--re-surface2); color: var(--re-navy) !important; }
.re-nav-mobile__link.re-nav__link--active { background: var(--re-saffron-lt); color: var(--re-saffron-dk) !important; font-weight: 600; }
.re-nav-mobile__link i { font-size: 16px; color: var(--re-muted2); width: 18px; text-align: center; }
.re-nav-mobile__divider { height: 1px; background: var(--re-border2); margin: 8px 0; }

@media (max-width: 1100px) {
  .re-nav__links { display: none; }
  .re-nav__right .re-nav__login,
  .re-nav__right .re-nav__user-wrap { display: none; }
  .re-nav__hamburger { display: flex; }
  .re-live-badge { display: none; }
  .re-nav__search { width: 150px; }
}
@media (min-width: 1101px) {
  .re-nav-mobile { display: none !important; }
}
@media (max-width: 480px) {
  .re-nav__search { display: none; }
}

/* ============================================================
   4. JOURNEY SEARCH STRIP  (.re-journey — replaces header.php navbar)
   ============================================================ */
.re-journey {
  background: var(--re-white);
  border-bottom: 1.5px solid var(--re-border2);
  box-shadow: var(--re-shadow-1);
}
.re-journey__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.re-journey__label {
  font-family: var(--re-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--re-muted2);
  margin-right: 2px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.re-journey__label i { color: var(--re-saffron); font-size: 13px; }

.re-journey__field { position: relative; }
.re-journey__field .form-control {
  height: 40px !important;
  border: 1.5px solid var(--re-border2) !important;
  border-radius: var(--re-r-md) !important;
  background: var(--re-surface2) !important;
  font-family: var(--re-body) !important;
  font-size: 13.5px !important;
  color: var(--re-text2) !important;
  box-shadow: none !important;
  transition: var(--re-t) !important;
  padding: 0 12px !important;
}
.re-journey__field .form-control:focus {
  border-color: var(--re-saffron) !important;
  background: var(--re-white) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12) !important;
}
.re-journey__field--stn .form-control { width: 168px !important; }
.re-journey__field--quota select.form-control,
.re-journey__field--quota .form-control { width: 138px !important; cursor: pointer; }
.re-journey__field--date .form-control { width: 122px !important; cursor: pointer; }

.re-journey__swap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--re-white);
  border: 1.5px solid var(--re-border2);
  color: var(--re-muted2) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--re-t);
  text-decoration: none !important;
  flex-shrink: 0;
  font-size: 13px;
}
.re-journey__swap:hover {
  border-color: var(--re-saffron);
  color: var(--re-saffron) !important;
  transform: rotate(180deg);
}

.re-journey__btn {
  height: 40px;
  padding: 0 22px !important;
  border-radius: var(--re-r-md) !important;
  background: var(--re-saffron) !important;
  border: none !important;
  color: #fff !important;
  font-family: var(--re-display) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: var(--re-t) !important;
  text-shadow: none !important;
  box-shadow: var(--re-shadow-1) !important;
}
.re-journey__btn:hover {
  background: var(--re-saffron-dk) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.re-journey__btn:active { transform: scale(0.99); }

@media (max-width: 991px) {
  .re-journey__inner { padding: 10px 14px; }
  .re-journey__label { display: none; }
  .re-journey__field--stn .form-control { width: 140px !important; }
  .re-journey__field--quota { display: none; }
}
@media (max-width: 600px) {
  .re-journey__field--stn .form-control { width: calc(42vw - 30px) !important; }
  .re-journey__field--date { display: none; }
  .re-journey__btn { padding: 0 14px !important; }
}

/* ============================================================
   5. HOMEPAGE HERO  (.re-hero)
   ============================================================ */
.re-hero {
  position: relative;
  background: linear-gradient(150deg, var(--re-navy-dark) 0%, var(--re-navy) 55%, var(--re-navy-mid) 100%);
  border-radius: var(--re-r-2xl);
  padding: 44px 36px 40px;
  overflow: hidden;
  text-align: center;
  margin-bottom: 4px;
}
.re-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.02) 0 1px, transparent 1px 70px);
  pointer-events: none;
}
.re-hero::after {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,0.16) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.re-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-family: var(--re-display);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 16px;
  border-radius: var(--re-r-full);
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}
.re-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--re-saffron);
  border-radius: 50%;
  flex-shrink: 0;
  animation: re-pulse 2s ease-in-out infinite;
}

.re-hero__title {
  position: relative;
  z-index: 1;
  font-family: var(--re-display) !important;
  font-size: 36px;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.16;
  letter-spacing: -1px;
  margin: 0 0 12px !important;
}
.re-hero__title em {
  font-style: normal;
  color: var(--re-saffron);
}

.re-hero__sub {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 26px;
}

/* Quick-link pills */
.re-hero__links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.re-hero__ql {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--re-r-md);
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92) !important;
  font-family: var(--re-display);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: var(--re-t);
  white-space: nowrap;
}
.re-hero__ql i { color: var(--re-saffron); font-size: 15px; }
.re-hero__ql:hover {
  background: var(--re-saffron);
  border-color: var(--re-saffron);
  color: #fff !important;
  transform: translateY(-2px);
}
.re-hero__ql:hover i { color: #fff; }
.re-hero__ql--primary {
  background: var(--re-saffron);
  border-color: var(--re-saffron);
}
.re-hero__ql--primary i { color: #fff; }
.re-hero__ql--primary:hover { background: var(--re-saffron-dk); border-color: var(--re-saffron-dk); }

/* Hero meta stats */
.re-hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.re-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.5);
  font-size: 12.5px;
}
.re-hero__meta-item i { font-size: 14px; color: rgba(255,255,255,0.35); }
.re-hero__meta-item strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.re-hero__meta-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.14); }

@media (max-width: 768px) {
  .re-hero { padding: 32px 18px 30px; border-radius: var(--re-r-xl); }
  .re-hero__title { font-size: 27px; letter-spacing: -0.5px; }
  .re-hero__sub { font-size: 14px; }
  .re-hero__meta-sep { display: none; }
}

/* ============================================================
   6. NEWS CARD  (.re-news — homepage latest news)
   ============================================================ */
.re-news {
  background: var(--re-white);
  border: 1.5px solid var(--re-border2);
  border-radius: var(--re-r-xl);
  overflow: hidden;
  margin-top: 18px;
  text-align: left;
}
.re-news__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px;
  background: var(--re-surface2);
  border-bottom: 1px solid var(--re-border2);
}
.re-news__title {
  font-family: var(--re-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--re-navy);
  display: flex;
  align-items: center;
  gap: 9px;
}
.re-news__title i { color: var(--re-saffron); }
.re-news__more {
  font-family: var(--re-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--re-saffron) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.re-news__more:hover { color: var(--re-saffron-dk) !important; text-decoration: underline !important; }

.re-news__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--re-border2);
  text-decoration: none !important;
  transition: var(--re-t-fast);
}
.re-news__item:last-child { border-bottom: none; }
.re-news__item:hover { background: var(--re-surface2); }
.re-news__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--re-saffron);
  opacity: 0.65;
  flex-shrink: 0;
}
.re-news__text {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--re-text2);
  line-height: 1.5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.re-news__item:hover .re-news__text { color: var(--re-navy); }
.re-news__arrow {
  font-size: 11px;
  color: var(--re-muted-lt);
  flex-shrink: 0;
  transition: var(--re-t-fast);
}
.re-news__item:hover .re-news__arrow { color: var(--re-saffron); transform: translateX(2px); }

/* ============================================================
   7. CONTENT CARDS — restyle ProUI .widget & .block (premium)
   ============================================================ */
.widget,
.block {
  background: var(--re-white) !important;
  border: 1.5px solid var(--re-border2) !important;
  border-radius: var(--re-r-xl) !important;
  box-shadow: var(--re-shadow-1) !important;
  overflow: hidden;
}
.widget:hover, .block:hover { box-shadow: var(--re-shadow-2) !important; }

.widget-advanced { border-radius: var(--re-r-xl) !important; }

.block-title {
  background: var(--re-surface2) !important;
  border-bottom: 1px solid var(--re-border2) !important;
}

/* Right-rail tabs — premium pill style */
.block .nav-tabs {
  border-bottom: none !important;
  background: var(--re-surface2) !important;
  padding: 8px 8px 0 !important;
  display: flex !important;
  gap: 2px;
}
.block .nav-tabs > li { float: none !important; }
.block .nav-tabs > li > a {
  border: none !important;
  border-radius: var(--re-r-md) var(--re-r-md) 0 0 !important;
  font-family: var(--re-display) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--re-muted2) !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  background: transparent !important;
  transition: var(--re-t) !important;
  border-bottom: 2.5px solid transparent !important;
}
.block .nav-tabs > li > a:hover {
  color: var(--re-navy) !important;
  background: rgba(255,255,255,0.7) !important;
}
.block .nav-tabs > li.active > a {
  color: var(--re-navy) !important;
  background: var(--re-white) !important;
  border-bottom: 2.5px solid var(--re-saffron) !important;
}

/* ============================================================
   8. BUTTONS — premium overrides for bootstrap btns
   ============================================================ */
.btn {
  font-family: var(--re-display) !important;
  font-weight: 600 !important;
  border-radius: var(--re-r-md) !important;
  transition: var(--re-t) !important;
  text-shadow: none !important;
  letter-spacing: 0.1px;
}
.btn:active { transform: scale(0.99); }

.btn-primary {
  background: var(--re-saffron) !important;
  border-color: var(--re-saffron) !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--re-saffron-dk) !important;
  border-color: var(--re-saffron-dk) !important;
  color: #fff !important;
}

.btn-info {
  background: var(--re-navy) !important;
  border-color: var(--re-navy) !important;
  color: #fff !important;
}
.btn-info:hover { background: var(--re-navy-mid) !important; border-color: var(--re-navy-mid) !important; }

.btn-success {
  background: var(--re-success2) !important;
  border-color: var(--re-success2) !important;
  color: #fff !important;
}
.btn-success:hover { opacity: 0.92; }

.btn-danger {
  background: var(--re-danger2) !important;
  border-color: var(--re-danger2) !important;
}
.btn-danger:hover { opacity: 0.92; }

.btn-warning {
  background: var(--re-warning2) !important;
  border-color: var(--re-warning2) !important;
  color: #fff !important;
}

.btn-default {
  background: var(--re-white) !important;
  border: 1.5px solid var(--re-border2) !important;
  color: var(--re-text2) !important;
}
.btn-default:hover {
  border-color: var(--re-navy) !important;
  color: var(--re-navy) !important;
  background: var(--re-surface2) !important;
}

/* ============================================================
   9. FORMS
   ============================================================ */
.form-control {
  font-family: var(--re-body) !important;
  border: 1.5px solid var(--re-border2) !important;
  border-radius: var(--re-r-md) !important;
  color: var(--re-text2) !important;
  box-shadow: none !important;
  transition: var(--re-t) !important;
}
.form-control:focus {
  border-color: var(--re-saffron) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12) !important;
}
.form-control::placeholder { color: var(--re-muted-lt) !important; }

label.control-label {
  font-family: var(--re-display) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  color: var(--re-muted2) !important;
}

/* Input groups */
.input-group .input-group-btn .btn { border-radius: 0 var(--re-r-md) var(--re-r-md) 0 !important; }
.input-group .form-control { border-radius: var(--re-r-md) 0 0 var(--re-r-md) !important; }

/* ============================================================
   10. AUTOCOMPLETE  (.ac_results — jQuery autosuggest)
   ============================================================ */
.ac_results {
  background: var(--re-white) !important;
  border: 1.5px solid var(--re-border2) !important;
  border-radius: var(--re-r-lg) !important;
  box-shadow: var(--re-shadow-3) !important;
  overflow: hidden !important;
  z-index: 2050 !important;
  padding: 4px !important;
  margin-top: 4px !important;
}
.ac_results ul { margin: 0 !important; padding: 0 !important; }
.ac_results li {
  font-family: var(--re-body) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--re-text2) !important;
  padding: 9px 12px !important;
  border-radius: var(--re-r-sm) !important;
  cursor: pointer !important;
  transition: var(--re-t-fast) !important;
  line-height: 1.4 !important;
}
.ac_results li strong { color: var(--re-saffron-dk) !important; font-weight: 700 !important; }
.ac_results li.ac_over,
.ac_results li:hover {
  background: var(--re-surface2) !important;
  color: var(--re-navy) !important;
}

/* ============================================================
   11. MODALS — premium restyle of bootstrap modals
   ============================================================ */
.modal-content {
  border: none !important;
  border-radius: var(--re-r-2xl) !important;
  box-shadow: var(--re-shadow-3) !important;
  overflow: hidden;
}
.modal-header {
  background: var(--re-navy) !important;
  border-bottom: 3px solid var(--re-saffron) !important;
  padding: 16px 22px !important;
}
.modal-header .modal-title,
.modal-header h3, .modal-header h4 {
  color: #fff !important;
  font-family: var(--re-display) !important;
  font-weight: 700 !important;
}
.modal-header .close {
  color: #fff !important;
  opacity: 0.7 !important;
  text-shadow: none !important;
  font-size: 24px !important;
}
.modal-header .close:hover { opacity: 1 !important; }
.modal-body { padding: 22px !important; }
.modal-footer {
  background: var(--re-surface2) !important;
  border-top: 1px solid var(--re-border2) !important;
}
.modal-backdrop.in { opacity: 0.55 !important; }

/* ============================================================
   12. TABLES — final polish (modern-tables.css does the base)
   ============================================================ */
.table {
  border-radius: var(--re-r-md);
  overflow: hidden;
}
.table-bordered,
.table-bordered > tbody > tr > td,
.table-bordered > thead > tr > td,
.table-bordered > thead > tr > th {
  border-color: var(--re-border2) !important;
}

/* dataTables filter/pagination polish */
.dataTables_wrapper { padding: 10px 6px; }
.dataTables_info { font-size: 12.5px !important; color: var(--re-muted2) !important; font-family: var(--re-body) !important; }

/* ============================================================
   13. LABELS / BADGES / ALERTS
   ============================================================ */
.label {
  font-family: var(--re-display) !important;
  font-weight: 600 !important;
  border-radius: var(--re-r-full) !important;
  padding: 3px 10px !important;
  letter-spacing: 0.2px;
}
.label-success { background: var(--re-success-lt) !important; color: #15803D !important; border: 1px solid var(--re-success-bd); }
.label-danger  { background: var(--re-danger-lt) !important;  color: #B91C1C !important; border: 1px solid var(--re-danger-bd); }
.label-warning { background: var(--re-warning-lt) !important; color: #92400E !important; border: 1px solid var(--re-warning-bd); }
.label-info    { background: var(--re-info-lt) !important;    color: #0369A1 !important; border: 1px solid var(--re-info-bd); }

.alert { border-radius: var(--re-r-lg) !important; font-family: var(--re-body) !important; }

/* ============================================================
   14. PREMIUM FOOTER  (.re-footer)
   ============================================================ */
.re-footer {
  background: var(--re-navy-dark);
  border-top: 3px solid var(--re-saffron);
  color: rgba(255,255,255,0.6);
  margin-top: 36px;
}
.re-footer__body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 20px 40px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 44px;
}
.re-footer__brand-logo {
  display: flex;
  align-items: baseline;
  font-family: var(--re-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 13px;
}
.re-footer__brand-logo span:first-child  { color: #fff; }
.re-footer__brand-logo span:nth-child(2) { color: var(--re-saffron); }
.re-footer__brand-logo span:last-child   { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.3); margin-left: 2px; }
.re-footer__brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.42);
  max-width: 300px;
  margin-bottom: 18px;
}
.re-footer__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.re-footer__tag {
  font-size: 11.5px;
  color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
  padding: 3px 11px;
  border-radius: var(--re-r-full);
  border: 1px solid rgba(255,255,255,0.1);
}
.re-footer__col h4 {
  font-family: var(--re-display) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.3) !important;
  margin: 0 0 16px !important;
}
.re-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.re-footer__col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.52) !important;
  text-decoration: none !important;
  transition: var(--re-t);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.re-footer__col ul li a i { font-size: 12px; width: 14px; color: rgba(255,255,255,0.3); }
.re-footer__col ul li a:hover { color: var(--re-saffron) !important; }
.re-footer__col ul li a:hover i { color: var(--re-saffron); }

.re-footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); }
.re-footer__bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}
.re-footer__bottom-inner a { color: rgba(255,255,255,0.35) !important; text-decoration: none !important; }
.re-footer__bottom-inner a:hover { color: var(--re-saffron) !important; }

@media (max-width: 992px) {
  .re-footer__body { grid-template-columns: 1fr 1fr; gap: 30px; }
  .re-footer__brand-desc { max-width: 100%; }
}
@media (max-width: 576px) {
  .re-footer__body { grid-template-columns: 1fr; gap: 26px; padding: 34px 18px 26px; }
}

/* ============================================================
   15. PAGE / MISC POLISH
   ============================================================ */

/* topresult container — keep functional, just look better */
#topresult { border-radius: var(--re-r-xl); }

/* Result placeholder train icons */
#resultdiv h2, #resultdiv1 h2 { color: var(--re-border-dk) !important; }

/* DataTables pagination */
.pagination > li > a {
  font-family: var(--re-display) !important;
  border-radius: var(--re-r-sm) !important;
  margin: 0 2px !important;
  border: 1.5px solid transparent !important;
  color: var(--re-muted2) !important;
}
.pagination > li > a:hover { border-color: var(--re-border2) !important; color: var(--re-navy) !important; background: var(--re-surface2) !important; }
.pagination > li.active > a {
  background: var(--re-navy) !important;
  border-color: var(--re-navy) !important;
  color: #fff !important;
}

/* Tooltips */
.tooltip-inner {
  font-family: var(--re-body) !important;
  background: var(--re-navy-dark) !important;
  border-radius: var(--re-r-sm) !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

/* Datepicker premium */
.datepicker {
  border-radius: var(--re-r-lg) !important;
  border: 1.5px solid var(--re-border2) !important;
  box-shadow: var(--re-shadow-3) !important;
  font-family: var(--re-body) !important;
  padding: 8px !important;
}
.datepicker table tr td.active,
.datepicker table tr td.active:hover {
  background: var(--re-saffron) !important;
  background-image: none !important;
  border-radius: var(--re-r-sm) !important;
  text-shadow: none !important;
}
.datepicker table tr td.today {
  background: var(--re-saffron-lt) !important;
  background-image: none !important;
  color: var(--re-saffron-dk) !important;
  border-radius: var(--re-r-sm) !important;
}
.datepicker table tr td:hover { border-radius: var(--re-r-sm) !important; }

/* Headings inside result areas */
#topresult h3, #runningresultdiv h3 {
  font-family: var(--re-display) !important;
  font-weight: 700 !important;
  color: var(--re-navy) !important;
}

/* Smooth page entrance */
#page-content { animation: re-fade-up 0.3s ease; }
@keyframes re-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* AdSense containers shouldn't get card borders */
.adsbygoogle { border: none !important; }

/* Hide legacy elements */
.site-footer { display: none !important; }

/* ============================================================
   16. NAVBAR OVERFLOW FIXES
   ============================================================ */
.re-nav__inner { gap: 12px; }
.re-nav__links {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.re-nav__link { padding: 6px 10px; font-size: 13px; flex-shrink: 0; }
.re-nav__search { width: 180px; flex-shrink: 1; min-width: 120px; }
@media (max-width: 1340px) {
  .re-live-badge { display: none; }
  .re-nav__link i { display: none; }
}
@media (max-width: 1200px) {
  .re-nav__links .re-nav__link:nth-child(5) { display: none; } /* Arrivals & Dep → in More */
}

/* ============================================================
   17. FULL-WIDTH HOMEPAGE HERO  (.re-hero-full)
   ============================================================ */
.re-hero-full {
  background: linear-gradient(155deg, var(--re-navy-dark) 0%, var(--re-navy) 55%, var(--re-navy-mid) 130%);
  border-top: 3px solid var(--re-saffron);
  padding: 52px 24px 64px;
  position: relative;
  overflow: hidden;
}
.re-hero-full::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg,  rgba(255,255,255,0.02)  0 1px, transparent 1px 60px);
  pointer-events: none;
}
.re-hero-full::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(249,115,22,0.13) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.re-hero-full__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.re-hero-full__title {
  font-family: var(--re-display) !important;
  font-size: 44px;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.14;
  margin: 0 0 14px !important;
  letter-spacing: -1px;
}
.re-hero-full__title em { font-style: normal; color: var(--re-saffron); }
.re-hero-full__sub {
  color: rgba(255,255,255,0.58);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 auto 36px;
  max-width: 540px;
}

/* ============================================================
   18. SEARCH CARD  (.re-search-card)
   ============================================================ */
.re-search-card {
  background: var(--re-white);
  border-radius: var(--re-r-2xl);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.15);
  text-align: left;
  box-shadow: 0 24px 64px rgba(8,30,58,0.45);
}

.re-search-tabs {
  display: flex;
  border-bottom: 1px solid var(--re-border2);
  background: var(--re-surface2);
  overflow-x: auto;
  scrollbar-width: none;
}
.re-search-tabs::-webkit-scrollbar { display: none; }

.re-search-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 22px;
  font-family: var(--re-display);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--re-muted2);
  border: none;
  border-bottom: 2.5px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--re-t);
  user-select: none;
  flex-shrink: 0;
}
.re-search-tab i { font-size: 15px; }
.re-search-tab:hover { color: var(--re-navy); background: rgba(255,255,255,0.7); }
.re-search-tab.active {
  color: var(--re-navy);
  border-bottom-color: var(--re-saffron);
  background: var(--re-white);
  font-weight: 700;
}

.re-search-body { padding: 28px 28px 30px; }
.re-search-panel { display: none; }
.re-search-panel.active { display: block; animation: re-fade-up 0.25s ease; }

/* Form grid in search card */
.re-form-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.re-form-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .re-form-grid--2 { grid-template-columns: 1fr; } }

.re-field { display: flex; flex-direction: column; }
.re-form-label {
  display: block;
  font-family: var(--re-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--re-muted2);
  margin-bottom: 7px;
}

/* Large inputs inside the search card */
.form-control.re-input-lg {
  height: 48px !important;
  font-size: 14.5px !important;
  background: var(--re-surface2) !important;
  padding: 0 14px !important;
}
.form-control.re-input-lg:focus { background: var(--re-white) !important; }
select.form-control.re-input-lg { cursor: pointer; }

/* PNR special input */
.re-pnr-wrap { max-width: 380px; margin: 0 auto 20px; }
.form-control.re-input-pnr {
  font-family: var(--re-mono) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  letter-spacing: 5px !important;
  text-align: center !important;
  height: 58px !important;
  color: var(--re-navy) !important;
  background: var(--re-surface2) !important;
}
.form-control.re-input-pnr:focus { background: var(--re-white) !important; }
.re-pnr-hint {
  font-size: 12px;
  color: var(--re-muted2);
  text-align: center;
  margin-top: 7px;
}

/* Big saffron submit */
.re-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 50px;
  border-radius: var(--re-r-md);
  background: var(--re-saffron) !important;
  color: #fff !important;
  font-family: var(--re-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: var(--re-t);
  cursor: pointer;
  border: none;
}
.re-search-submit:hover {
  background: var(--re-saffron-dk) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(249,115,22,0.35);
}
.re-search-submit:active { transform: scale(0.99); }
.re-search-submit i { font-size: 16px; }

@media (max-width: 768px) {
  .re-hero-full { padding: 38px 14px 48px; }
  .re-hero-full__title { font-size: 30px; letter-spacing: -0.5px; }
  .re-hero-full__sub { font-size: 14.5px; margin-bottom: 28px; }
  .re-search-body { padding: 20px 16px 22px; }
  .re-search-tab { padding: 12px 14px; font-size: 12.5px; }
}
@media (max-width: 480px) {
  .re-hero-full__title { font-size: 25px; }
}

/* ============================================================
   19. NEWS TICKER  (.re-ticker)
   ============================================================ */
.re-ticker {
  background: var(--re-navy-surface);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.re-ticker__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}
.re-ticker__label {
  flex-shrink: 0;
  background: var(--re-saffron);
  color: #fff;
  font-family: var(--re-display);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--re-r-xs);
  letter-spacing: 0.9px;
  text-transform: uppercase;
}
.re-ticker__scroll { flex: 1; overflow: hidden; position: relative; min-width: 0; }
.re-ticker__track {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: re-ticker-scroll 60s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.re-ticker__track:hover { animation-play-state: paused; }
@keyframes re-ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.re-ticker__item {
  font-size: 13px;
  color: rgba(255,255,255,0.7) !important;
  text-decoration: none !important;
  transition: var(--re-t-fast);
}
.re-ticker__item:hover { color: var(--re-saffron) !important; }
.re-ticker__sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--re-saffron);
  border-radius: 50%;
  opacity: 0.6;
  flex-shrink: 0;
}
.re-ticker__all {
  flex-shrink: 0;
  font-family: var(--re-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6) !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.re-ticker__all:hover { color: var(--re-saffron) !important; }
@media (max-width: 600px) { .re-ticker__all { display: none; } }

/* ============================================================
   20. QUICK ACTIONS GRID
   ============================================================ */
.re-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.re-qa-section { background: var(--re-surface2); padding: 40px 0 8px; }

.re-section-header { margin-bottom: 18px; }
.re-section-header h2 {
  font-family: var(--re-display) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--re-navy) !important;
  letter-spacing: -0.3px;
  margin: 0 !important;
}

.re-qa-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.re-qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 10px 18px;
  background: var(--re-white);
  border: 1.5px solid var(--re-border2);
  border-radius: var(--re-r-lg);
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--re-t-slow);
}
.re-qa-item:hover {
  border-color: var(--re-saffron);
  transform: translateY(-3px);
  box-shadow: var(--re-shadow-2);
}
.re-qa-item__label {
  font-family: var(--re-display);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  color: var(--re-navy);
  line-height: 1.4;
}

/* Icon colour wrappers */
.re-ic { width: 46px; height: 46px; border-radius: var(--re-r-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.re-ic i { font-size: 20px; }
.re-ic--blue   { background: #EFF6FF; } .re-ic--blue   i { color: #1D4ED8; }
.re-ic--green  { background: #F0FDF4; } .re-ic--green  i { color: #16A34A; }
.re-ic--orange { background: #FFF7ED; } .re-ic--orange i { color: #EA580C; }
.re-ic--purple { background: #F5F3FF; } .re-ic--purple i { color: #7C3AED; }
.re-ic--teal   { background: #F0FDFA; } .re-ic--teal   i { color: #0F766E; }
.re-ic--indigo { background: #EEF2FF; } .re-ic--indigo i { color: #4F46E5; }
.re-ic--amber  { background: #FFFBEB; } .re-ic--amber  i { color: #B45309; }
.re-ic--red    { background: #FFF1F2; } .re-ic--red    i { color: #DC2626; }

@media (max-width: 1024px) { .re-qa-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px)  { .re-qa-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* ============================================================
   21. HOMEPAGE NEWS LIST SECTION + STATS + AD
   ============================================================ */
.re-home-news { background: var(--re-surface2); padding: 26px 0 40px; }
.re-home-news .re-news { margin-top: 0; }

.re-stats-section {
  background: var(--re-white);
  border-top: 1px solid var(--re-border2);
  border-bottom: 1px solid var(--re-border2);
}
.re-stats-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 24px;
}
.re-stat-cell {
  padding: 36px 20px;
  text-align: center;
  border-right: 1px solid var(--re-border2);
}
.re-stat-cell:last-child { border-right: none; }
.re-stat-cell__num {
  font-family: var(--re-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--re-navy);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
}
.re-stat-cell__num em { font-style: normal; color: var(--re-saffron); }
.re-stat-cell__label {
  font-size: 13px;
  color: var(--re-muted2);
  font-weight: 500;
  line-height: 1.45;
}
@media (max-width: 1024px) {
  .re-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .re-stat-cell { border-bottom: 1px solid var(--re-border2); }
  .re-stat-cell:nth-child(2n) { border-right: none; }
  .re-stat-cell:nth-child(n+3) { border-bottom: none; }
}

.re-home-ad {
  background: var(--re-surface2);
  text-align: center;
  padding: 28px 12px;
  overflow: hidden;
}

/* ============================================================
   22. INNER-PAGE POLISH
   ============================================================ */

/* Premium empty states in result panels */
.re-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 22px;
  text-align: center;
}
.re-panel-empty__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--re-r-lg);
  background: var(--re-surface2);
  border: 1.5px solid var(--re-border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--re-muted-lt);
}
.re-panel-empty__title {
  font-family: var(--re-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--re-navy);
}
.re-panel-empty__text {
  font-size: 12.5px;
  color: var(--re-muted2);
  max-width: 260px;
  line-height: 1.6;
}

/* Borderless ad slot (no white card when ad unfilled) */
.re-ad-slot { background: transparent; border: none; margin-bottom: 20px; min-height: 0; }

/* Train list table: always-visible styled horizontal scrollbar */
#topresult { scrollbar-width: thin; }
#topresult::-webkit-scrollbar { height: 9px; }
#topresult::-webkit-scrollbar-thumb { background: var(--re-border-dk); border-radius: var(--re-r-full); }
#topresult::-webkit-scrollbar-thumb:hover { background: var(--re-saffron); }

/* Train list: tighter cells so more columns fit */
.trainlisttb { font-size: 13px !important; }
.trainlisttb td, .trainlisttb th { padding: 9px 8px !important; }
.trainlisttb td:nth-child(2) { min-width: 150px !important; }

/* AJAX result tables (availability / fare) — use UI font, not mono */
#resultdiv table, #resultdiv1 table,
#resultdiv table td, #resultdiv1 table td,
#resultdiv table th, #resultdiv1 table th {
  font-family: var(--re-body) !important;
  font-size: 13px !important;
}
#resultdiv .table td:first-child, #resultdiv1 .table td:first-child {
  font-family: var(--re-body) !important;
  color: var(--re-text2) !important;
  font-weight: 500 !important;
}
#resultdiv h4, #resultdiv1 h4, #resultdiv h3, #resultdiv1 h3 {
  font-family: var(--re-display) !important;
  color: var(--re-navy) !important;
  font-weight: 700 !important;
}

/* Result widgets: compact, no fixed min-heights */
#result1div .widget-advanced,
#result2div .widget-advanced { min-height: 0 !important; }

/* Right rail moved below content on full-width pages (trains list):
   lay its blocks out side by side, centred */
.re-rail--bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8px;
}
.re-rail--bottom .block,
.re-rail--bottom .re-ad-slot {
  flex: 0 1 380px;
  min-width: 320px;
  margin-bottom: 0 !important;
}

/* Full-width trains table: let it breathe */
.trainlisttb { min-width: 1100px; }

/* doaction forms (running status page etc.) inside cards */
#runningresultdiv .block { box-shadow: none !important; }
#runningresultdiv h2 {
  font-family: var(--re-display) !important;
  font-weight: 700 !important;
  color: var(--re-navy) !important;
}

/* ============================================================
   23. TABLER ICON ALIGNMENT
   ============================================================ */
.ti {
  display: inline-block;
  vertical-align: -0.14em;
  line-height: 1;
}

/* ============================================================
   24. GLASS NAVBAR + LOGO MARK
   ============================================================ */
.re-nav {
  background: rgba(255,255,255,0.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  transition: box-shadow 0.25s ease;
}
.re-nav--scrolled {
  box-shadow: 0 4px 24px rgba(13,43,78,0.10);
}

.re-nav__logo { gap: 9px; align-items: center; }
.re-nav__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--re-navy) 0%, var(--re-navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(13,43,78,0.25);
  position: relative;
  overflow: hidden;
}
.re-nav__logo-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 5px;
  height: 2px;
  background: var(--re-saffron);
  opacity: 0.9;
}
.re-nav__logo-mark i { color: #fff; font-size: 19px; }
.re-nav__logo-text { display: flex; align-items: baseline; }

/* Active link: animated underline */
.re-nav__link { position: relative; }
.re-nav__link::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--re-saffron);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.re-nav__link--active::after { transform: scaleX(1); }

/* ============================================================
   25. PREMIUM TRAIN LIST TABLE
   (columns: No | Name | From | Dep | To | Arr | Travel | M..S | sp | classes)
   ============================================================ */
.trainlisttb { border-collapse: separate !important; border-spacing: 0 !important; }

/* Kill zebra — clean rows with separators */
.trainlisttb tbody tr,
.trainlisttb tbody tr:nth-child(even) { background: var(--re-white) !important; }
.trainlisttb tbody tr:hover {
  background: #FBFCFE !important;
  box-shadow: inset 3px 0 0 var(--re-saffron);
}
.trainlisttb tbody tr td { border-top: none !important; border-bottom: 1px solid var(--re-border2) !important; }

/* Train number — mono pill */
.trainlisttb tbody td:first-child {
  font-family: var(--re-mono) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #3730A3 !important;
}
.trainlisttb tbody td:first-child::before { content: ''; }

/* Train name — display font, bolder */
.trainlisttb tbody td:nth-child(2) a {
  font-family: var(--re-display) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--re-navy) !important;
  letter-spacing: 0.1px;
}
.trainlisttb tbody td:nth-child(2) a:hover { color: var(--re-saffron) !important; }

/* Station codes (From/To) — small mono muted */
.trainlisttb tbody td:nth-child(3),
.trainlisttb tbody td:nth-child(5) {
  font-family: var(--re-mono) !important;
  font-size: 11.5px !important;
  color: var(--re-muted2) !important;
  letter-spacing: 0.4px;
}

/* Times (Dep/Arr) — bold display */
.trainlisttb tbody td:nth-child(4),
.trainlisttb tbody td:nth-child(6) {
  font-family: var(--re-display) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--re-text2) !important;
  white-space: nowrap;
}

/* Travel time — subtle pill */
.trainlisttb tbody td:nth-child(7) {
  font-family: var(--re-mono) !important;
  font-size: 12px !important;
  color: var(--re-muted2) !important;
}

/* Temp-special rows: soft amber wash instead of bootstrap warning */
.trainlisttb tbody tr.warning,
.trainlisttb tbody tr.warning td { background: var(--re-warning-lt) !important; }

/* ============================================================
   26. LOADING — PREMIUM LOADER + SKELETONS
   ============================================================ */
.re-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  text-align: center;
}
.re-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--re-border2);
  border-top-color: var(--re-saffron);
  border-radius: 50%;
  animation: re-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes re-spin { to { transform: rotate(360deg); } }
.re-loading__title {
  font-family: var(--re-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--re-navy);
}
.re-loading__meta {
  font-family: var(--re-mono);
  font-size: 12px;
  color: var(--re-muted2);
}
.re-skel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(320px, 80%);
  margin-top: 6px;
}
.re-skel span {
  display: block;
  height: 12px;
  border-radius: var(--re-r-full);
  background: linear-gradient(90deg, var(--re-surface-alt) 25%, #E9EEF5 50%, var(--re-surface-alt) 75%);
  background-size: 200% 100%;
  animation: re-shimmer 1.4s ease infinite;
}
.re-skel span:nth-child(2) { width: 85%; }
.re-skel span:nth-child(3) { width: 70%; }
.re-skel--table { width: min(560px, 92%); }
.re-skel--table span { height: 16px; }
@keyframes re-shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* NProgress — thin saffron top bar */
#nprogress .bar {
  background: var(--re-saffron) !important;
  height: 3px !important;
}
#nprogress .peg { box-shadow: 0 0 10px var(--re-saffron), 0 0 5px var(--re-saffron) !important; }
#nprogress .spinner-icon {
  border-top-color: var(--re-saffron) !important;
  border-left-color: var(--re-saffron) !important;
}

/* ============================================================
   27. ERROR NOTIFICATION — PREMIUM TOAST
   ============================================================ */
#error_notification {
  background: var(--re-navy-dark) !important;
  color: #fff !important;
  border: none !important;
  border-left: 4px solid var(--re-danger2) !important;
  border-radius: var(--re-r-lg) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28) !important;
  padding: 14px 18px !important;
  width: 300px !important;
  font-family: var(--re-body) !important;
}
#error_notification h4 {
  color: #fff !important;
  font-family: var(--re-display) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin: 0 0 4px !important;
}
#error_notification p {
  color: rgba(255,255,255,0.75) !important;
  font-size: 13px !important;
  margin: 0 !important;
  line-height: 1.5;
}
#error_notification .close { color: rgba(255,255,255,0.6) !important; text-shadow: none !important; }

/* ============================================================
   28. FOCUS RINGS (accessibility, consistent)
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.re-search-tab:focus-visible {
  outline: 2px solid var(--re-saffron) !important;
  outline-offset: 2px !important;
  border-radius: var(--re-r-xs);
}

/* ============================================================
   29. AD SLOTS — RESERVED HEIGHTS (no layout shift)
   ============================================================ */
ins.adsbygoogle[style*="height:90px"]  { min-height: 90px; }
ins.adsbygoogle[style*="height:250px"] { min-height: 250px; }

/* ============================================================
   30. HERO — ANIMATED RAIL TRACK
   ============================================================ */
.re-hero-full { isolation: isolate; }
.re-hero-track {
  position: absolute;
  left: 0; right: 0; bottom: 26px;
  height: 2px;
  background: rgba(255,255,255,0.07);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.re-hero-track::before {
  content: '';
  position: absolute;
  top: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--re-saffron), transparent);
  animation: re-track-run 7s linear infinite;
}
@keyframes re-track-run {
  from { left: -160px; }
  to   { left: 100%; }
}

/* ============================================================
   31. SCROLL REVEAL + STATS
   ============================================================ */
.re-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.re-reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .re-reveal { opacity: 1; transform: none; transition: none; }
  .re-ticker__track { animation: none; }
  .re-hero-track::before { animation: none; }
}
.re-count { font-variant-numeric: tabular-nums; }

/* ============================================================
   32. MOBILE BOTTOM NAV (app-like)
   ============================================================ */
.re-bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1025;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--re-border2);
  box-shadow: 0 -4px 20px rgba(13,43,78,0.08);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.re-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  background: none;
  border: none;
  border-radius: var(--re-r-md);
  color: var(--re-muted2) !important;
  font-family: var(--re-display);
  font-size: 10.5px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: var(--re-t-fast);
}
.re-bottom-nav__item i { font-size: 21px; }
.re-bottom-nav__item.active { color: var(--re-saffron-dk) !important; }
.re-bottom-nav__item:active { background: var(--re-surface2); }
@media (max-width: 768px) {
  .re-bottom-nav { display: flex; }
  body { padding-bottom: 64px !important; }
  .re-footer { margin-bottom: 0; }
}

/* ============================================================
   33. RUNNING STATUS TIMELINE POLISH (rs-* from modern-results)
   ============================================================ */
.rs-row.current, .rs-row.rs-current {
  background: var(--re-saffron-lt) !important;
  box-shadow: inset 3px 0 0 var(--re-saffron);
}
.rs-hero-stn-name { font-family: var(--re-display) !important; font-weight: 800 !important; }
.rs-t-sch { font-family: var(--re-display) !important; font-weight: 700 !important; }

/* ============================================================
   34. RIGHT-RAIL CARD REFINEMENT
   ============================================================ */
.block .tab-content { background: var(--re-white); }
.block .form-group .input-group .form-control { height: 42px !important; }
.block .btn-block { height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Card hover: lift slightly (only interactive cards) */
.re-qa-item, .re-news__item { will-change: transform; }
