/* General Body and Header Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding-top: 90px; /* Adjust based on your fixed navbar height */
    background: #f4f4f4;
    color: #333;
}

/* header {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
} */

/* Navbar Styles (from your HTML context) */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    border-radius: 50%;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Services Section */
.services-section {
    padding: 2rem;
    text-align: center;
    margin-top: 5%;
}

.services-section h1 {
    font-weight: bold;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

.services-section h2 {
    margin-bottom: 2rem;
    color: #333;
}

.services-section p {
    color: gray;
    font-family: 'Times New Roman', Times, serif;
}

.driver-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
}

.driver-card {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.driver-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Note: Your HTML for service cards doesn't seem to use images, so this might be redundant or for future use */
.driver-card img {
    width: 100%;
    border-radius: 8px;
    height: 160px;
    object-fit: cover;
}

.driver-card h3 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #003366;
}

.driver-card p {
    color: #555;
}

.driver-card.clickable {
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.driver-card.clickable.active {
    background-color: #FFA726;
    color: white;
    border-color: #FB8C00;
}

/* Routes Section - Map and Dropdown Styling */
.routes-section {
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 900px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.routes-section h2 {
    font-weight: 800;
    margin-bottom: 1rem;
    color: #003366;
}

.routes-section p {
    color: #555;
    margin-bottom: 1.5rem;
}

#routeSelector {
    padding: 12px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
    background-color: #fefefe;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    -webkit-appearance: none; /* Remove default dropdown arrow */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 viewBox%3D%220 0 256 512%22%3E%3Cpath fill%3D%22%23333%22 d%3D%22M192 128l-64 64-64-64z%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#routeSelector:hover {
    border-color: #999;
}

#routeSelector:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.3);
}

#routeDetails {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 100%;
    margin: 0 auto;
    min-height: 200px; /* Provides initial height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mapPreview {
    height: 400px; /* Set a default height for the map container */
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#mapPreview iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}

#distanceTime {
    font-size: 1.15rem;
    color: #333;
    font-weight: 600;
    text-align: center;
}

/* Highlight Banner */
.highlight-banner {
    background: linear-gradient(90deg, #ff8c00, #ffa500, #ffcc70);
    padding: 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: glow 2s infinite alternate;
    font-family: 'Roboto', sans-serif;
}

.highlight-banner h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px #000;
}

.highlight-banner p {
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

@keyframes glow {
    from {
        box-shadow: 0 0 15px #ffa500;
    }
    to {
        box-shadow: 0 0 30px #ff6600;
    }
}

/* Section with Scroll Images, Why Choose Us, Testimonials */
.section-with-scroll-images {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1200px;
}

.scroll-column {
    width: 207px;
    height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.scroll-track {
    display: flex;
    flex-direction: column;
    animation: scroll-vertical 10s linear infinite;
}

.scroll-track img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px;
}

@keyframes scroll-vertical {
    0% { transform: translateY(0%); }
    100% { transform: translateY(-100%); }
}

/* Center section styling (Why Choose Us, Testimonials) */
.section-with-scroll-images > section {
    flex: 1;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.why-choose, .testimonials {
    padding: 2rem;
    text-align: center;
    background-color: #fff; /* Redundant if inheriting from parent section, but harmless */
    margin: 0; /* Override previous margin: 2rem 0; to fit flexbox */
    border-radius: 10px; /* Redundant if inheriting from parent section, but harmless */
    box-shadow: none; /* Remove individual shadows if parent has one */
}

.why-choose h2, .testimonials h2 {
    color: #003366; /* Use theme color for headings */
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.why-choose ul {
    list-style: none;
    padding: 0;
    color: #333;
    text-align: left; /* Align list items to left */
}

.why-choose ul li {
    margin: 0.8rem 0;
    font-size: 1rem;
}
.why-choose ul li::before {
    content: "✔ "; /* Add a checkmark for list items */
    color: #FFA726; /* Accent color for checkmark */
    font-weight: bold;
    margin-right: 5px;
}


.testimonials blockquote {
    font-style: italic;
    margin: 1rem auto;
    max-width: 600px;
    color: #555;
    border-left: 4px solid #FFA726; /* Add a border to quotes */
    padding-left: 15px;
    line-height: 1.6;
}


/* Call to Action */
.cta {
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 900px;
    background-color: #003366; /* Use primary theme color */
    color: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* Add shadow */
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white; /* Ensure text is white on dark background */
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #eee; /* Lighter text for readability */
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #FFA726; /* Use accent color for button */
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s;
    border: none; /* Ensure no default button border */
}

.cta-button:hover {
    background-color: #FB8C00; /* Darker accent on hover */
    color: white;
    text-decoration: none;
}

/* Footer Styles */
.bg-container-bottom {
    background-color: #d2b48c; /* Consistent with your navbar */
    color: black;
    padding-top: 50px;
    padding-bottom: 30px;
}

.bg-container-bottom h5 {
    color: black;
    margin-bottom: 20px;
    font-weight: bold;
}

.bg-container-bottom p {
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.bg-container-bottom hr {
    border-color: black;
    margin-top: 30px;
    margin-bottom: 20px;
}

.bg-container-bottom .fa-envelope,
.bg-container-bottom .fa-phone,
.bg-container-bottom .fa-map-marker-alt {
    color: #5d4037; /* A subtle accent color for icons */
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-with-scroll-images {
        flex-direction: column;
        align-items: center;
    }

    .scroll-column {
        flex: none;
        width: 100%;
        height: 400px;
        margin-bottom: 20px;
    }

    .why-choose, .testimonials {
        width: 100%;
        margin-bottom: 20px;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        flex-direction: column;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
    }

    .services-section, .routes-section, .highlight-banner, .cta {
        padding: 40px 15px;
    }

    .highlight-banner h2 {
        font-size: 1.8rem;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .navbar-brand img {
        width: 60px;
        height: 60px;
    }

    .mx-auto.d-none.d-lg-block {
        display: none !important;
    }

    .driver-card h3 {
        font-size: 1.4rem;
    }

    .driver-card p {
        font-size: 0.9rem;
    }

    #routeSelector {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    #mapPreview {
        height: 300px;
    }

    .highlight-banner h2 {
        font-size: 1.5rem;
    }

    .highlight-banner p {
        font-size: 0.9rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
.navbar-nav .nav-link {
  transition: color 0.3s ease;
}

.navbar-toggler {
  border: none;
  outline: none;
}