/* ==========================================
   PuruliaTime - SEO Optimized Stylesheet
   ========================================== */

/* CSS Variables */
:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --secondary: #4ecdc4;
    --accent: #16213e;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Top Bar
   ========================================== */
.top-bar {
    background: var(--dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-time i {
    color: var(--primary);
}

.time-zone {
    opacity: 0.7;
    font-size: 0.75rem;
}

.top-links {
    display: flex;
    gap: 20px;
}

.top-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.top-links a:hover {
    color: var(--primary);
}

.top-links a i {
    margin-right: 5px;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
}

.logo .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text);
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 84px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff8597;
    margin-bottom: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================
   Redesigned Search Container
   ========================================== */
.search-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    justify-content: center;
}

.search-tab {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 30px;
    color: var(--white);
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-tab.active {
    background: var(--primary);
}

.search-box-wrapper {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.search-input-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.search-field {
    flex: 1;
}

.search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
}

.select-wrapper select {
    width: 100%;
    padding: 15px 45px 15px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    cursor: pointer;
    appearance: none;
    transition: var(--transition);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--primary);
}

.swap-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: center;
}

.swap-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: rotate(180deg);
}

.swap-btn i {
    color: var(--primary);
}

.swap-btn:hover i {
    color: var(--white);
}

.search-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(233, 69, 96, 0.3);
}

/* Quick Tags */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    justify-content: center;
}

.quick-tags span {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.quick-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--white);
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ==========================================
   Live Clock Section
   ========================================== */
.live-clock-section {
    padding: 40px 0;
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.clock-card {
    display: flex;
    gap: 40px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    color: var(--white);
    align-items: center;
}

.clock-display {
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.clock-time {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--primary);
}

.clock-date {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 5px;
}

.clock-info {
    flex: 1;
}

.clock-info h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.next-buses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-bus-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.bus-time {
    font-weight: 700;
    color: var(--primary);
    min-width: 80px;
}

.bus-name {
    flex: 1;
}

.bus-dest {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* ==========================================
   Section Title
   ========================================== */
.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ==========================================
   Bus Stands Quick Access
   ========================================== */
.bus-stands-quick {
    padding: 60px 0;
    background: var(--light);
}

.bus-stands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.bus-stand-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
    border-left: 4px solid var(--primary);
}

.bus-stand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stand-icon {
    width: 50px;
    height: 50px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.stand-icon i {
    font-size: 1.3rem;
    color: var(--primary);
}

.bus-stand-card h3 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.bus-stand-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.stand-routes {
    display: inline-block;
    background: rgba(78, 205, 196, 0.1);
    color: var(--secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==========================================
   Popular Routes Section
   ========================================== */
.popular-routes-section {
    padding: 60px 0;
    background: var(--white);
}

.routes-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.route-card-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: block;
    border: 1px solid #eee;
}

.route-card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.route-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    color: var(--white);
}

.route-from {
    font-weight: 600;
    font-size: 1.1rem;
}

.route-arrow {
    color: var(--primary);
}

.route-to {
    font-weight: 600;
    font-size: 1.1rem;
}

.route-card-body {
    padding: 20px;
}

.route-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.route-info-item i {
    color: var(--primary);
    width: 18px;
}

.route-card-footer {
    padding: 15px 20px;
    background: var(--light);
    border-top: 1px solid #eee;
}

.view-details {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-details i {
    transition: var(--transition);
}

.route-card-item:hover .view-details i {
    transform: translateX(5px);
}

/* ==========================================
   All Routes SEO Section
   ========================================== */
.all-routes-seo {
    padding: 60px 0;
    background: var(--light);
}

.routes-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.route-column h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.2rem;
}

.route-column ul li {
    margin-bottom: 12px;
}

.route-column ul li a {
    color: var(--text);
    transition: var(--transition);
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.route-column ul li a:hover {
    color: var(--primary);
    padding-left: 10px;
}

/* ==========================================
   About Home Section
   ========================================== */
.about-home {
    padding: 60px 0;
    background: var(--white);
}

.about-home h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 25px;
}

.about-home > .container > p {
    max-width: 900px;
    margin: 0 auto 20px;
    color: var(--text-light);
    text-align: center;
}

.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--light);
    border-radius: 30px;
}

.feature i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* ==========================================
   Page Header
   ========================================== */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==========================================
   Route Content Page
   ========================================== */
.route-content {
    padding: 60px 0;
}

.route-info-box {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.info-item {
    padding: 10px 20px;
    background: var(--light);
    border-radius: 25px;
    font-size: 0.95rem;
}

.info-item strong {
    color: var(--primary);
}

.timetable-article {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.timetable-article h2 {
    color: var(--dark);
    margin-bottom: 20px;
    margin-top: 40px;
    font-size: 1.5rem;
}

.timetable-article h2:first-child {
    margin-top: 0;
}

.timetable-article > p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.timetable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.timetable th,
.timetable td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.timetable th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
}

.timetable tr:hover {
    background: rgba(233, 69, 96, 0.05);
}

.timetable td:first-child {
    font-weight: 600;
    color: var(--primary);
}

.route-notes {
    background: var(--light);
    padding: 25px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.route-notes h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

.route-notes ul,
.route-notes ol {
    margin-left: 20px;
}

.route-notes li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.route-notes a {
    color: var(--primary);
    font-weight: 500;
}

.fare-info {
    background: rgba(78, 205, 196, 0.1);
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.fare-info h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.fare-info p {
    margin-bottom: 8px;
}

.fare-info .note {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Related Routes */
.related-routes {
    margin-top: 40px;
}

.related-routes h3 {
    color: var(--dark);
    margin-bottom: 20px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.related-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.related-card i {
    color: var(--primary);
}

.related-card:hover i {
    color: var(--white);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h3 i {
    color: var(--primary);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .clock-card {
        flex-direction: column;
        text-align: center;
    }

    .clock-display {
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .search-input-group {
        flex-direction: column;
    }

    .swap-btn {
        align-self: center;
        transform: rotate(90deg);
    }

    .swap-btn:hover {
        transform: rotate(270deg);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .navbar {
        top: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content > p {
        font-size: 1rem;
    }

    .search-tabs {
        flex-wrap: wrap;
    }

    .search-tab {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .search-box-wrapper {
        padding: 20px;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .timetable-article {
        padding: 25px;
    }

    .timetable {
        font-size: 0.9rem;
    }

    .timetable th,
    .timetable td {
        padding: 10px 8px;
    }

    .route-info-box {
        flex-direction: column;
    }

    .routes-cards-grid {
        grid-template-columns: 1fr;
    }

    .quick-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .next-buses {
        flex-direction: column;
    }

    .next-bus-item {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .clock-time {
        font-size: 2rem;
    }

    .bus-stands-grid {
        grid-template-columns: 1fr;
    }

    .route-card-header {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .route-arrow {
        transform: rotate(90deg);
    }

    .select-wrapper select {
        padding: 12px 40px 12px 15px;
        font-size: 0.95rem;
    }
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Badge Styles */
.badge-express, .badge-reported, .badge-local {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.badge-express {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-reported {
    background: #fff3e0;
    color: #e65100;
}

.badge-local {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Timetable Notice */
.timetable-notice {
    font-size: 0.9rem;
    color: #666;
    padding: 12px;
    background: #f5f5f5;
    border-left: 3px solid var(--primary);
    margin: 20px 0;
}

/* ==========================================
   Mobile Bottom App Bar
   ========================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    z-index: 9999;
    padding: 6px 10px;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.mobile-nav-item i {
    font-size: 1.15rem;
    margin-bottom: 2px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary, #e94560);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 60px;
    }
}

/* ==========================================
   Responsive Timetable (Mobile Card Layout)
   ========================================== */
@media (max-width: 640px) {
    /* Mobile Homepage Route Search Form */
    .search-card {
        padding: 1.25rem 1rem !important;
    }

    .search-form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
    }

    .search-form-grid > div {
        width: 100% !important;
        padding-top: 0 !important;
    }

    .search-form-grid > div:nth-child(2) {
        margin: -0.25rem 0 !important;
        display: flex !important;
        justify-content: center !important;
        padding-top: 0 !important;
    }

    .search-form-grid select {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.95rem !important;
    }

    .search-form-grid .search-btn {
        width: 100% !important;
        padding: 0.85rem 1rem !important;
        margin-top: 0.25rem !important;
    }

    .timetable-article {
        padding: 1.25rem 0.75rem !important;
    }

    .filter-controls > div:first-child {
        grid-template-columns: 1fr !important;
    }

    table.timetable,
    table.timetable tbody,
    table.timetable tr {
        display: block !important;
        width: 100% !important;
    }

    table.timetable thead {
        display: none !important;
    }

    table.timetable tbody tr[style*="display: none"],
    table.timetable tbody tr[style*="display:none"],
    table.timetable tbody tr.hidden {
        display: none !important;
    }

    table.timetable tbody tr {
        display: flex !important;
        flex-wrap: wrap !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 0.9rem 1rem !important;
        margin-bottom: 0.85rem !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
        align-items: center !important;
    }

    /* 1. Time (Top Left) */
    table.timetable tbody tr td:nth-child(1) {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        width: auto !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        font-family: monospace !important;
        color: var(--primary, #e94560) !important;
        border: none !important;
        white-space: nowrap !important;
    }

    /* 4. Status Badge (Top Right) */
    table.timetable tbody tr td:nth-child(4) {
        display: flex !important;
        align-items: center !important;
        padding: 0 !important;
        margin-left: auto !important;
        width: auto !important;
        border: none !important;
    }

    /* 2. Bus Name (Line 2, Full Width) */
    table.timetable tbody tr td:nth-child(2) {
        display: block !important;
        width: 100% !important;
        padding: 0.45rem 0 0.15rem 0 !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        border: none !important;
    }

    /* 3. Destination & Via (Line 3, Full Width) */
    table.timetable tbody tr td:nth-child(3) {
        display: flex !important;
        align-items: flex-start !important;
        width: 100% !important;
        padding: 0.2rem 0 0 0 !important;
        font-size: 0.88rem !important;
        color: #475569 !important;
        border: none !important;
        line-height: 1.45 !important;
    }

    table.timetable tbody tr td:nth-child(3)::before {
        content: "📍 ";
        margin-right: 0.25rem;
    }

    .hero-badge {
        margin-top: 0.75rem !important;
        font-size: clamp(0.58rem, 2.6vw, 0.7rem) !important;
        padding: 0.3rem 0.65rem !important;
        gap: 0.35rem !important;
        max-width: calc(100% - 1rem) !important;
        border-radius: 9999px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .hero-badge i {
        font-size: 0.85em !important;
    }
}


