:root {
    --primary-rail: #0ea5e9;
    --primary-dark: #0284c7;
    --signal-green: #10b981;
    --btn-blue: #0284c7;
    --btn-blue-hover: #0369a1;
    --dark-carbon: #080c16;
    --border-soft: #e2e8f0;
    --bg-canvas: #f8fafc;
    --text-heading: #0f172a;
    --text-body: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Lexend', sans-serif;
    letter-spacing: -0.03em;
}

body {
    background-color: var(--bg-canvas);
    color: var(--text-heading);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== NAVIGATION ===== */
.terminal-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 14px 0;
    transition: all 0.3s ease;
}

.terminal-nav.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ===== BRAND LOGO ===== */
.brand-link {
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-logo-symbol {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.28);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo-symbol::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.brand-logo-symbol svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.brand-name-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.brand-title-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.brand-title-main span {
    color: var(--primary-rail);
}

.brand-sub-badge {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 2px;
}

.nav-link-custom {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--text-heading) !important;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline-block;
}

.nav-link-custom:hover {
    color: var(--primary-rail) !important;
    background: rgba(14, 165, 233, 0.08);
    text-decoration: none !important;
}

/* ===== HERO BANNER ===== */
.hero-banner-terminal {
    position: relative;
    padding: 155px 0 110px;
    color: #ffffff;
    overflow: hidden;

    /* Image */
    background-image: url('../img/train-safar.webp');
    background-position: center 60%;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Gradient overlay */
.hero-banner-terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(8, 12, 22, 0.88) 0%, rgba(8, 12, 22, 0.83) 100% );
    z-index: 0;
}

/* Content ko gradient ke upar rakhna */
.hero-banner-terminal > * {
    position: relative;
    z-index: 1;
}

.hero-banner-terminal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, var(--bg-canvas) 0%, transparent 100%);
}

.live-telemetry-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 24px;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--signal-green);
    box-shadow: 0 0 10px var(--signal-green);
}

.hero-headline {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-headline span {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ===== SCREENSHOT SEARCH CARD ===== */
.search-screenshot-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 26px 30px;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.screenshot-tabs-row {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    align-items: center;
    flex-wrap: wrap;
}

.screenshot-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.screenshot-tab-btn i {
    font-size: 1.05rem;
}

.screenshot-tab-btn.active {
    background: #e0f2fe;
    color: #0369a1;
}

.screenshot-tab-btn:hover:not(.active) {
    background: #f1f5f9;
    color: #0f172a;
}

.form-field-group {
    text-align: left;
}

.form-field-label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.screenshot-input {
    width: 100%;
    height: 54px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 0.96rem;
    font-weight: 500;
    color: #0f172a;
    transition: all 0.2s ease;
}

.screenshot-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
    outline: none;
}

.station-swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f6fc;
    border: 1px solid #d0dbe7;
    color: #0284c7;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.station-swap-btn:hover {
    background: #e0f2fe;
    transform: rotate(180deg);
}

/* Blue Button Styling (Matching image) */
.btn-screenshot-blue {
    height: 54px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    border: none;
    border-radius: 12px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-screenshot-blue:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
}

.popular-routes-bar {
    border-top: 1px dashed #e2e8f0;
    margin-top: 22px;
    padding-top: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
    text-align: left;
}

.popular-label {
    font-weight: 700;
    color: #334155;
}

.route-chip-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 5px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.84rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.route-chip-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
}

/* ===== METRICS ROW ===== */
.terminal-specs-bar {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.spec-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.spec-item h5 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.spec-item p {
    color: #94a3b8;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ===== 14 SERVICES SECTION ===== */
.section-intro-terminal {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 55px;
}

.terminal-category-tag {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 12px;
}

.service-module-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 26px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.28s ease;
    position: relative;
}

.service-module-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 36px -10px rgba(15, 23, 42, 0.08);
}

.module-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: transform 0.25s ease;
}

.service-module-card:hover .module-icon-box {
    transform: scale(1.08);
}

.service-module-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.service-module-card p {
    color: var(--text-body);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 18px;
}

.module-action-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.service-module-card:hover .module-action-link {
    gap: 10px;
    color: #0f172a;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-us-section {
    background: linear-gradient(135deg, #080c16 0%, #0f172a 100%);
    padding: 95px 0;
    color: #ffffff;
    position: relative;
}

.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-rail);
    transform: translateY(-6px);
}

.why-card .why-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    color: #38bdf8;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.why-card:hover .why-icon-box {
    background: var(--primary-dark);
    color: #ffffff;
    transform: scale(1.1);
}

.why-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.why-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about-section-terminal {
    padding: 95px 0;
    background: #ffffff;
}

.about-panel-box {
    background: var(--bg-canvas);
    border: 1px solid var(--border-soft);
    border-radius: 28px;
    padding: 55px;
}

.about-panel-box h2 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 20px;
    line-height: 1.25;
}

.about-panel-box h2 span {
    color: var(--primary-dark);
}

.about-panel-box p {
    color: var(--text-body);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.about-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 35px 0;
}

.about-chip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-heading);
    transition: all 0.25s ease;
}

.about-chip-item i {
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.about-chip-item:hover {
    border-color: var(--primary-rail);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.btn-cta-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.25);
}

.btn-cta-brand:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.35);
}

.btn-cta-outline {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: transparent;
    color: var(--text-heading);
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    border: 1.5px solid var(--border-soft);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-cta-outline:hover {
    background: #ffffff;
    border-color: var(--text-heading);
    color: var(--text-heading);
    transform: translateY(-2px);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
    padding: 95px 0;
    background: var(--bg-canvas);
    border-top: 1px solid var(--border-soft);
}

.workflow-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    padding: 38px 26px;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    text-align: center;
}

.workflow-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-rail);
    box-shadow: 0 20px 40px -15px rgba(14, 165, 233, 0.12);
}

.workflow-step-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: var(--dark-carbon);
    color: #ffffff;
    font-family: 'Lexend', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.workflow-icon {
    width: 68px;
    height: 68px;
    background: #f0f9ff;
    color: var(--primary-dark);
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.85rem;
    margin: 12px auto 22px;
    transition: all 0.3s ease;
}

.workflow-card:hover .workflow-icon {
    background: var(--primary-dark);
    color: #ffffff;
    transform: scale(1.08);
}

.workflow-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.workflow-card p {
    color: var(--text-body);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== BLOG SECTION ===== */
.rail-journal-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.rail-journal-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 18px 36px -10px rgba(0, 0, 0, 0.08);
}

.journal-thumb-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #080c16;
}

.journal-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rail-journal-card:hover .journal-thumb-wrap img {
    transform: scale(1.08);
}

.journal-badge-overlay {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(8, 12, 22, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.journal-content-wrap {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.journal-content-wrap h3 {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-heading);
    margin-bottom: 10px;
}

.journal-content-wrap p {
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

/* ===== FAQ ACCORDION ===== */
.terminal-faq-item {
    border: 1px solid var(--border-soft);
    border-radius: 16px !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: #ffffff;
}

.accordion-button {
    padding: 20px 24px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-heading);
    background: #ffffff;
    text-decoration: none !important;
}

.accordion-button:not(.collapsed) {
    background: #f8fafc;
    color: var(--primary-dark);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 20px 24px 24px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== FOOTER TERMINAL ===== */
.terminal-footer .brand-link img {
    width: auto;
    max-width: 270px;
    position: relative;
    left: -14px;
}
.terminal-footer {
    background: var(--dark-carbon);
    color: #cbd5e1;
    padding: 85px 0 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.terminal-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terminal-footer-links li {
    margin-bottom: 12px;
}

.terminal-footer-links a {
    color: #cbd5e1;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.93rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.terminal-footer-links a i {
    color: #38bdf8;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.terminal-footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-decoration: none !important;
}

.terminal-footer-links a:hover i {
    color: #0ea5e9;
    transform: translateX(2px);
}

.terminal-disclaimer-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
}

.terminal-disclaimer-box p {
    color: #cbd5e1;
    font-size: 0.82rem;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .hero-headline {
        font-size: 2.8rem;
    }
    .terminal-specs-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-chips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-panel-box {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.2rem;
    }
    .search-screenshot-card {
        padding: 18px;
    }
    .about-chips-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================================================
   COACH FORMATION (ENGINE TO GUARD) STYLES
   ======================================================= */
.ts-coach-container {
    overflow-x: auto;
    padding: 10px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
}

.ts-coach-train {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: max-content;
    align-items: center;
}

.ts-coach {
    flex: 0 0 auto;
    min-width: 54px;
    max-width: 74px;
    text-align: center;
    padding: 8px 4px 6px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.72rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ts-coach:hover {
    transform: translateY(-3px);
}

.ts-coach-type {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.ts-coach-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
}

.ts-coach-engine {
    background: linear-gradient(135deg, #080c16 0%, #1e293b 100%);
}
.ts-coach-sl     {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}
.ts-coach-3e     {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.ts-coach-3a     {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}
.ts-coach-2a     {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
}
.ts-coach-1a     {
    background: linear-gradient(135deg, #be185d 0%, #9d174d 100%);
}
.ts-coach-cc     {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.ts-coach-gen    {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}
.ts-coach-lpr    {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Blinker for current station */
.ts-blinker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ts-blinker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
    animation: ts-radar-blink 1.2s infinite;
    box-shadow: 0 0 6px #ef4444;
}

@keyframes ts-radar-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.85);
    }
}

/* Running Days Badges */
.ts-days-badges {
    display: inline-flex;
    gap: 3px;
    align-items: center;
}

.ts-day-dot {
    font-size: 0.68rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #f1f5f9;
    color: #94a3b8;
}

.ts-day-dot.active {
    background: #0284c7;
    color: #ffffff;
}

/* Mobile Clean App-like Card (Search Trains) */
.ts-train-mob-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ts-train-mob-top {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px dashed var(--border-soft);
    padding-bottom: 10px;
}

.ts-train-mob-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 3px 8px;
    border-radius: 6px;
}

.ts-train-mob-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.ts-train-mob-timing-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 14px;
}

.ts-train-mob-stn {
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.ts-train-mob-stn.right {
    text-align: right;
    align-items: flex-end;
}

.ts-train-mob-time {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.1;
}

.ts-train-mob-code {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 2px;
}

.ts-train-mob-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 8px;
}

.ts-train-mob-dur {
    font-size: 0.74rem;
    font-weight: 700;
    color: #475569;
}

.ts-train-mob-arrow-line {
    width: 100%;
    max-width: 85px;
    height: 1.5px;
    background: #cbd5e1;
    position: relative;
    margin: 4px 0;
}

.ts-train-mob-arrow-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 6px solid var(--primary-dark);
}

.ts-train-mob-halts {
    font-size: 0.68rem;
    color: #94a3b8;
}

.ts-train-mob-days {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.ts-train-mob-days-lbl {
    font-size: 0.74rem;
    font-weight: 700;
    color: #64748b;
}

.ts-train-mob-actions {
    display: flex;
    gap: 8px;
}

/* Mobile Timeline Card (Track Train) */
.ts-track-mob-card {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ts-track-mob-card.ts-track-current-card {
    border-color: var(--primary-dark) !important;
    background: #f0f9ff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15) !important;
}

.ts-track-mob-card.ts-track-passed-card {
    opacity: 0.85;
}

.ts-track-mob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px dashed var(--border-soft);
    padding-bottom: 8px;
}

.ts-track-mob-stn-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-track-mob-idx {
    font-size: 0.76rem;
    font-weight: 800;
    color: #94a3b8;
}

.ts-track-mob-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}

.ts-track-mob-code-dist {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: #64748b;
    margin-top: 2px;
}

.ts-track-mob-timing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
}

.ts-track-mob-time-col {
    display: flex;
    flex-direction: column;
}

.ts-track-mob-lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

.ts-track-mob-time-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-heading);
}

.ts-track-mob-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2px;
}

/* =======================================================
   ROUTE TIMELINE SWITCH TABS (MAIN VS ALL STATIONS)
   ======================================================= */
.ts-route-switch-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.ts-route-switch-btn {
    border: none;
    background: transparent;
    color: #475569;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.3;
}

.ts-route-switch-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

/* Active State: Elevated Primary Blue */
.ts-route-switch-btn.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

@media (max-width: 576px) {
    .ts-route-switch-wrap {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .ts-route-switch-btn {
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.78rem;
    }
}

@media (min-width: 769px) {
    .ts-track-mobile-view {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .ts-track-desktop-view {
        display: none !important;
    }
}

/* =======================================================
   SEARCH TRAINS TABLE & DROPDOWN UI FIX
   ======================================================= */
/* Dropdown Container Fix */
.form-field-group {
    position: relative !important;
}

.ts-autocomplete-results {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16) !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none !important;
}

.ts-autocomplete-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.92rem !important;
    color: #1e293b !important;
    transition: background 0.15s ease !important;
}

.ts-autocomplete-item:last-child {
    border-bottom: none !important;
}

.ts-autocomplete-item:hover,
.ts-autocomplete-item.ts-selected {
    background: #e0f2fe !important;
    color: #0369a1 !important;
}

.ts-autocomplete-code {
    font-weight: 800 !important;
    background: #f1f5f9 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
    color: #0284c7 !important;
}

/* Search Table Alignment */
.ts-search-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.ts-search-table tbody tr:hover {
    background: #f8fafc;
}

.ts-table-dur-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}

.ts-table-dur-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* Running Days Pill Dots */
.ts-days-badges {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.ts-day-dot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

.ts-day-dot.active {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
}

.rail-journal-card .journal-content-wrap  .text-dark:hover {
    color: var(--primary-dark) !important;
}
 