body {
    background-color: #f4f4f4;
    font-family: Poppins, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styles */
.navbar {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.required-star::after {
    content: '*';
    color: red;
    margin-left: 4px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand-text {
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: #ffffff;
}

.navbar-brand-text-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link-custom {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #000;
    padding: 10px 15px;
    transition: border-bottom 0.3s ease;
}

.nav-link-custom:hover {
    border-bottom: 1.5px solid rgba(205, 8, 24, 1);
}

.navbar-brand img {
    width: 70px;
    height: 60px;
}

.navbar-nav .nav-link {
    color: black;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #CE071A;
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-enquiry {
    background-color: rgba(205, 8, 24, 1);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-enquiry:hover {
    background-color: #001A67;
    color: #ffffff;
}

/* Hero Image Section */
/* .hero-image {
    width: 100%;
    position: relative;
    top: 80px;
    margin: 0;
    padding: 0;
    height: 400px;
    transition: height 0.3s ease;
} */
.hero-image {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    height: 400px;
    transition: height 0.3s ease;
    overflow: hidden;
    margin-top: 5%;
    
}

.full-width-image {
    width: 100%;
    height: 90%;
    object-fit: cover;
    display: block;
    margin-top: 6%;
}

/* Filter Section */
/* .filter-section {
    background-color: white;
    border-radius: 16px;
    padding: 15px;
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: height 0.3s ease;
} */

/* Filter Item */
.filter-section {
    background-color: white;
    border-radius: 16px;
    padding: 15px;
    width: 90%;
    max-width: 1200px;
    margin: -60px auto 30px auto; /* pulls it up toward the bottom of hero image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Filter Item Label */
.filter-item .form-label {
    color: green;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Filter Item Input */
.filter-item input.form-control {
    height: 38px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

/* Filter Item Button */
.filter-item .btn {
    height: 38px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
}

/* Ensure buttons align properly */
.filter-item .btn-primary {
    background-color: rgba(205, 8, 24, 1);
    border-color: red;
}

.filter-item .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* Main Content Styles */
main {
    margin-top: auto; 
    padding: 20px;
    min-height: calc(100vh - 540px); /* Adjusted for footer */
    transition: margin-top 0.3s ease;
}

.bus-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin: 10px;
}

.bus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.bus-card img {
    margin: -12px;
    width: 110%;
    height: 170px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.bus-card-body {
    padding: 12px;
}

.bus-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #001A67;
    margin-bottom: 6px;
    line-height: 1.4;
}

.bus-card-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 6px;
    padding-bottom: 6px;
    padding-top: 6px;
    line-height: 1;
    font-weight: 500;
}

.btn-view-details {
    align-items: center;
    background-color: #001A67;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
    margin-top: 8px;
    display: block;
    width: 100%;
    text-align: center;
}

.btn-view-details:hover {
    background-color: blue;
    color: #ffffff;
}

/* Bus Details and Enquiry Form Styles */
#busDetails,
#enquiryForm {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

#busDetails h3,
#enquiryForm h3 {
    font-family: Roboto;
    color: #001A67;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bus-details-title {
    font-family: Roboto;
    color: #001A67;
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0;
}

.bus-detail-item {
    margin-bottom: 10px;
}

.bus-detail-item label {
    font-weight: 500;
    color: #001A67;
    display: block;
    margin-bottom: 2px;
}

.bus-detail-item span {
    color: #333;
}

.btn-back,
.btn-submit-enquiry,
.btn-cancel-enquiry {
    background-color: #001A67;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-back:hover,
.btn-submit-enquiry:hover {
    background-color: blue;
    color: #ffffff;
}

.btn-cancel-enquiry {
    background-color: #6c757d;
}

.btn-cancel-enquiry:hover {
    background-color: #5a6268;
}

.form-label {
    font-weight: 500;
    color: #001A67;
}

.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.error-message {
    color: red;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.is-invalid {
    border-color: red !important;
}

.footer .row.top-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: left;
}

.footer .col.footer-left {
    flex: 1;
    min-width: 250px;
    max-width: 33%;
}

.footer .col.footer-center {
    flex: 1;
    min-width: 250px;
    max-width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .col.footer-right {
    flex: 1;
    min-width: 250px;
    max-width: 33%;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Make copyright center-aligned */
.footer .bottom-footer {
    text-align: center;
    margin-top: 20px;
    width: 100%;
    font-size: 14px;
}

/* Footer Styles */
.footer {
    background: #001A67;
    color: #ffffff;
    padding: 40px 20px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    position: relative; /* Ensure footer is a positioning context */
}

.footer .container {
    max-width: 1200px;
}

.footer .row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer .col {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
}

.footer .logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer .logo-text {
    font-size: 24px;
    font-weight: 600;
    margin-left: 10px;
    color: #ffffff;
}

.footer .footer-logo {
    width: 40px;
    height: 40px;
}

.footer p {
    margin: 0;
    font-size: 14px;
    text-align: justify;
}

.footer h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.footer-contact-icons img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
}

.footer-social-icons {
    display: flex;
    gap: 15px;
}

.footer-social-icons img {
    width: 30px;
}

.footer .copyright-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.footer .copyright-text {
    font-size: 14px;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

/* Message Display */
#display_message {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#display_message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#display_message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.enquiry-container {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.left-section {
    flex: 1;
    /* background-color: #001A67; */
    background: linear-gradient(171.13deg, #2376FF 0.48%, #001658 100%);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 15px;
}

.left-section h3 {
    font-size: 24px;
    margin-top: 0;
    color: #ffffff;
}

.left-section ul {
    list-style: none;
    padding: 0;
}

.left-section ul li {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.left-section ul li img {
    margin-right: 10px; /* Adds a 10px gap between the image and text */
}

.left-section ul li i {
    margin-right: 10px;
    font-size: 18px;
}

.left-section .contact-box {
    background-color: rgba(255, 255, 255, 0.24);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.left-section .contact-box p {
    margin: 5px 0;
    font-size: 14px;
}

.right-section {
    flex: 2;
    background-color: #ffffff;
    padding: 20px;
}

.right-section h3 {
    font-size: 24px;
    color: #001A67;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.checkbox-group {
    margin: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

.buttons {
    margin-top: 20px;
}


.bus-details-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
}

.bus-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.bus-main-image {
    width: 50%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.bus-info {
    flex: 1;
}

.bus-info h2 {
    font-size: 24px;
    color: #001A67;
    margin: 0 0 10px;
}

.bus-info p {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px;
}

.rating {
    font-size: 16px;
    color: #ffd700;
    margin-bottom: 10px;
}

.price {
    background: #e6f3ff;
    padding: 10px;
    border-radius: 5px;
    font-size: 18px;
    color: #001A67;
    margin-bottom: 10px;
}

.price span {
    font-size: 12px;
    color: #666;
}

.btn-book-now {
    background-color: #001A67;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-book-now:hover {
    background-color: #003087;
}

.bus-images {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bus-sub-image {
    width: 33.33%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.bus-section {
    margin-bottom: 20px;
}

.bus-section h3 {
    font-size: 20px;
    color: #001A67;
    margin-bottom: 15px;
}

.bus-info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    color: #333;
}

.bus-info-row div:first-child {
    font-weight: 500;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.amenity-card {
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    transition: background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
   

}

/* .amenity-card.active {
    background: #e0ffe0;
    color: #006400;
} */


.active-wifi {
  background: rgba(231, 255, 222, 1);
  color: #006400; /* Light green */
}
.active-video {
 background: rgba(223, 240, 255, 1);
 color: rgba(0, 58, 109, 1);

}

.active-light {
  background: rgba(255, 252, 223, 1);
  color:rgba(114, 103, 0, 1);

 
}

.active-audio {
  background: rgba(245, 223, 255, 1);
  color:rgba(81, 0, 118, 1);
;
 /* Light purple */
}

.active-seats {
  background: rgba(255, 232, 222, 1);
  color:rgba(126, 39, 1, 1);

 
}

.active-luggage {
 background: rgba(223, 224, 255, 1);
color: rgba(0, 3, 108, 1);

}

.active-charging {
  background: rgba(255, 240, 220, 1);
  color: rgb(108, 92, 72);

}

.active-pollution {
  background: rgb(191, 237, 191); 
  color:green;
}

.active-gps {
  background: rgba(223, 255, 252, 1);
 color: rgba(0, 111, 101, 1);

}

.amenity-card i {
    font-size: 15px;
    margin-bottom: 0px;

}

.certification-row {
    display: flex;
    gap: 20px;
}

.certification-card {
    background:rgba(218, 255, 248, 1);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    flex: 1;
    font-size: 14px;
    color:black;
}

.certification-card i {
    font-size: 15px;
    margin: 5px;
}

.help-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
}

.help-row div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.help-row i {
    font-size: 16px;
    color: #001A67;
}



@media (max-width: 768px) {
    .enquiry-container {
        flex-direction: column;
    }
    .left-section, .right-section {
        flex: none;
        width: 100%;
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .footer .row {
        flex-direction: column;
        align-items: center;
    }

    .footer .col {
        text-align: center;
        margin-bottom: 20px;
    }

    .footer .footer-social-icons {
        justify-content: center;
    }

    .footer p {
        text-align: center;
    }

    .filter-section {
        width: 95%;
        padding: 10px;
    }

    .footer .copyright-row {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .bus-details-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .bus-details-header .btn {
        align-self: flex-end;
    }

    .hero-image {
        height: 200px;
    }

    main {
        margin-top: 55%; /* Hero image (200px) + navbar (80px) */
        min-height: calc(100vh - 340px); /* Adjusted for footer */
    }

    /* .filter-section {
        width: 80%;
        padding: 8px;
        top: 70%;
    } */
 .filter-section {
        margin: -30px auto 20px auto;
        width: 95%;
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .hero-image {
    
            margin-top: 20%;
    }

    main {
        margin-top: 18%;
        min-height: calc(100vh - 290px); /* Adjusted for footer */
    }
    .footer .col.footer-right {
    align-items: center;
}
.footer .row.top-footer {
    align-items: center;
    text-align: center;

}
}

@media (min-width: 375px) {
     .footer .col.footer-right {
    align-items: center;
     }
    main {
        margin-top: 18%;
    }
    .footer .row.top-footer {
    align-items: center;
    text-align: center;

}
.hero-image {
            margin-top: 6%;
    }
    
}

@media (min-width: 768px) {
    main {
        margin-top: 30%;
    }
    .hero-image {
            margin-top: 4%;
    }
}
@media (min-width: 1024px) {

    main {
        top: auto;
        margin-top: -33%;
    }
 .full-width-image {
        margin-top: 3%;
    }
}
@media (min-width: 1440px) {
    .filter-section {
        margin-top: -2%;
    }
    .full-width-image {
        margin-top: 2%;
    }
    main {
        top: auto;
        margin-top: 12%;
    }}
    @media (max-width: 2800px) {
    .filter-section {
        margin-top: -5%;
    }
    main {
        top: auto;
        margin-top: 22%;
    } 

}
@media (min-width: 2560px) {
    
 .full-width-image {
        margin-top: 1%;
    }
}
