* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: #fafbff;
    color: #334155;
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #0f172a;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

a {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0284c7;
    text-decoration: underline;
}

strong {
    font-weight: 600;
}

/* Global Header */
.global-header {
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
}

.global-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0.75rem 1.5rem;
    gap: 1rem;
}

.logo-container {
    margin: 0;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-container a {
    display: block;
    text-decoration: none;
}

.logo-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Navigation */
.main-nav {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    color: #475569;
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-weight: 500;
    display: block;
    position: relative;
    font-size: 0.95rem;
}

.nav-links li a:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: translateY(-1px);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0ea5e9;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after {
    width: 70%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #ffffff;
    color: #0284c7;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 2px solid #ffffff;
}

.cta-button:hover {
    background-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Section Styles */
section {
    padding: 3rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    color: #64748b;
}

/* Legend */
.legend {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.legend h3 {
    margin-bottom: 1rem;
    color: #0f172a;
    font-size: 1.25rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

/* Controls */
.controls {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: end;
    border: 1px solid #e2e8f0;
}

.input-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    flex: 1;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
}

.input-group select,
.input-group input {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

button {
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    height: fit-content;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
}

button:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

#map {
    height: 500px;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    width: 100%;
    border: 1px solid #e2e8f0;
}

/* Stats Container */
.stats-container, .bus-list-container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.stats-container h2, .bus-list-container h2 {
    margin-bottom: 1rem;
    color: #0f172a;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

#last-updated {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.stat-card {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.stat-card h3 {
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0ea5e9;
}

.top-routes ul {
    list-style-type: none;
    padding: 0;
}

.top-routes li {
    padding: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
}

.top-routes li:last-child {
    border-bottom: none;
}

.top-routes strong {
    color: #0ea5e9;
    font-weight: 600;
}

/* Bus List */
.bus-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    border-radius: 0.375rem;
    margin-bottom: 0.125rem;
}

.bus-item:hover {
    background-color: #f8fafc;
    transform: translateX(2px);
}

.bus-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bus-route {
    font-weight: 700;
    color: #0ea5e9;
    font-size: 1.05rem;
    min-width: 50px;
}

.bus-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.bus-speed, .bus-delay, .bus-occupancy {
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.25rem;
}

.bus-speed {
    background-color: #dbeafe;
    color: #1e40af;
}

.bus-delay {
    background-color: #fef3c7;
    color: #92400e;
}

.bus-occupancy {
    background-color: #f3f4f6;
    color: #374151;
}

.bus-delay.late {
    background-color: #fee2e2;
    color: #b91c1c;
}

.bus-delay.early {
    background-color: #dcfce7;
    color: #166534;
}

/* Content Sections */
.real-time-info-section,
.how-to-find-section,
.features-section,
.bus-info-section {
    padding: 3rem 0;
}

.real-time-info-section,
.features-section,
.bus-info-section {
    background-color: #ffffff;
}

.how-to-find-section {
    background-color: #f8fafc;
}

.real-time-info-section h2,
.bus-info-section h2 {
    color: #0f172a;
    text-align: center;
    margin-bottom: 1.25rem;
}

.real-time-info-section h3,
.bus-info-section h3 {
    color: #0f172a;
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.real-time-info-section ul,
.bus-info-section ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1.25rem 0;
}

.real-time-info-section li,
.bus-info-section li {
    margin-bottom: 0.625rem;
    padding-left: 0.375rem;
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.step {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.step-number {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2);
}

.step h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: #0ea5e9;
    text-align: center;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #0f172a;
}

/* FAQ Section */
.faq-section {
    background-color: #ffffff;
    padding: 3rem 0;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background-color: #f8fafc;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

.faq-question h3 {
    margin: 0;
    color: #0f172a;
    font-weight: 600;
    font-size: 1.05rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #0ea5e9;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.25rem;
    display: none;
}

.faq-answer p {
    padding: 1.25rem 0;
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

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

.faq-item.active .faq-question {
    border-bottom: 1px solid #e2e8f0;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section h3 {
    font-size: 1.375rem;
}

.footer-section h4 {
    font-size: 1.125rem;
}

.footer-section p {
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.625rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.125rem 0;
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(2px);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Loading and Error */
.loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid #ef4444;
}

/* Contact Form Styles */
.contact-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem;
    font-weight: 600;
    color: #334155;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.submit-btn:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35);
}

/* Blog Styles */
.blog-post-list {
    margin: 2rem 0;
}

.blog-post-preview {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.blog-post-preview:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
}

.blog-post-preview h3 {
    margin-bottom: 0.5rem;
    font-size: 1.375rem;
}

.blog-post-preview h3 a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
}

.blog-post-preview h3 a:hover {
    color: #0ea5e9;
    text-decoration: underline;
}

.post-meta {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.post-excerpt {
    color: #475569;
    line-height: 1.6;
}

/* Blog Post Styles */
.blog-post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.blog-post-title {
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.blog-post-meta {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
    display: block;
    visibility: visible;
    opacity: 1;
}

.blog-post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    color: #0f172a;
}

.blog-post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.blog-post-content p {
    margin-bottom: 1.5rem;
    color: #334155;
}

.blog-post-content ul,
.blog-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-post-content li {
    margin-bottom: 0.5rem;
    color: #334155;
}

/* Ensure blog content is always visible */
.blog-post-content *,
.blog-post-content p,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content ul,
.blog-post-content ol,
.blog-post-content li {
    visibility: visible !important;
    display: block !important;
    opacity: 1 !important;
}

/* Back to Blog Link */
.back-to-blog {
    display: inline-block;
    margin: 2rem 0;
    padding: 0.75rem 1.5rem;
    background-color: #f8fafc;
    color: #0ea5e9;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.back-to-blog:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Ensure main content is visible */
main, article {
    display: block;
    visibility: visible;
}

main.container, article {
    display: block !important;
    visibility: visible !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .controls {
        gap: 1rem;
    }
    
    .input-group {
        min-width: 160px;
    }
    
    #map {
        height: 450px;
    }
    
    .steps, .features {
        gap: 1.25rem;
    }
    
    .step, .feature {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group {
        width: 100%;
        min-width: auto;
    }
    
    #map {
        height: 350px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    
    .steps, .features, .footer-content {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .bus-details {
        flex-direction: column;
        gap: 0.625rem;
        align-items: flex-start;
    }
    
    .bus-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-header {
        flex-direction: column;
        gap: 0.875rem;
        text-align: center;
    }
    
    .cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Keep header in one line on tablets */
    .global-header .container {
        flex-direction: row;
        gap: 1rem;
        text-align: left;
        padding: 0.75rem 1rem;
    }
    
    .nav-links {
        justify-content: flex-end;
        width: auto;
    }
    
    .nav-links li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .real-time-info-section,
    .bus-info-section,
    .faq-section,
    .features-section {
        padding: 2.5rem 0;
    }
    
    .step, .feature {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .controls, .legend, .stats-container, .bus-list-container {
        padding: 1rem;
    }
    
    #map {
        height: 280px;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .step, .feature {
        padding: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-answer p {
        padding: 1rem 0;
    }
    
    footer {
        padding: 2.5rem 0 1.25rem;
    }
    
    /* Keep header in one line on phones by reducing padding and font sizes */
    .global-header .container {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .global-header h1 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
    
    .nav-links li a {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }
    
    .real-time-info-section,
    .bus-info-section {
        padding: 2rem 0;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.625rem 0.875rem;
    }
    
    .submit-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    top: 100%;
    left: 0;
    margin-top: 0;
    padding: 8px 0;
    border: 1px solid #e0e0e0;
}

.dropdown-content a {
    color: #333333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 16px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #0066cc !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropbtn {
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.dropbtn:hover {
    color: #cccccc;
}

.dropbtn::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 8px;
}

/* Ensure dropdown works on all pages */
.global-header .nav-links .dropdown {
    height: 100%;
}

/* Improve visibility of dropdown */
.dropdown-content {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
