/* Custom styles for Fly Burundi website */

/* Font Awesome Icon Fixes */
.fas, .far, .fab, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.far {
    font-weight: 400 !important;
}

.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* Ensure icons are displayed inline */
.fas, .far, .fab, .fa {
    display: inline-block;
}

/* Common icon fixes with Unicode values - Font Awesome 6 */
.fa-chevron-down:before { content: "\f078"; }
.fa-chevron-up:before { content: "\f077"; }
.fa-angle-up:before { content: "\f106"; }
.fa-location-dot:before { content: "\f3c5"; } /* Updated from fa-map-marker-alt */
.fa-map-marker-alt:before { content: "\f3c5"; } /* Backward compatibility */
.fa-clock:before { content: "\f017"; }
.fa-phone:before { content: "\f095"; }
.fa-envelope:before { content: "\f0e0"; }
.fa-facebook:before { content: "\f09a"; }
.fa-twitter:before { content: "\f099"; }
.fa-instagram:before { content: "\f16d"; }
.fa-linkedin:before { content: "\f08c"; }
.fa-bell:before { content: "\f0f3"; }
.fa-triangle-exclamation:before { content: "\f071"; } /* Updated from fa-exclamation-triangle */
.fa-exclamation-triangle:before { content: "\f071"; } /* Backward compatibility */
.fa-circle-info:before { content: "\f05a"; } /* Updated from fa-info-circle */
.fa-info-circle:before { content: "\f05a"; } /* Backward compatibility */
.fa-circle-check:before { content: "\f058"; } /* Updated from fa-check-circle */
.fa-check-circle:before { content: "\f058"; } /* Backward compatibility */
.fa-circle-xmark:before { content: "\f057"; } /* Updated from fa-times-circle */
.fa-times-circle:before { content: "\f057"; } /* Backward compatibility */
.fa-bars:before { content: "\f0c9"; }
.fa-times:before { content: "\f00d"; }
.fa-xmark:before { content: "\f00d"; } /* Alternative for fa-times */
.fa-search:before { content: "\f002"; }
.fa-magnifying-glass:before { content: "\f002"; } /* Alternative for fa-search */
.fa-user:before { content: "\f007"; }
.fa-calendar:before { content: "\f073"; }
.fa-plane:before { content: "\f072"; }
.fa-suitcase:before { content: "\f0f2"; }
.fa-edit:before { content: "\f044"; }
.fa-pen-to-square:before { content: "\f044"; } /* Alternative for fa-edit */
.fa-trash:before { content: "\f1f8"; }
.fa-trash-can:before { content: "\f2ed"; } /* Alternative for fa-trash */
.fa-eye:before { content: "\f06e"; }
.fa-share:before { content: "\f064"; }

/* Fix home section positioning - push it down below fixed header */
.home_section.p-0 {
    margin-top: 90px; /* Reduced to 125px as requested */
    padding-top: 120px; /* Added padding-top as requested */
    margin-bottom: -50px; /* Reduce space below home section */
    height: 280px !important; /* Set fixed height to 280px for adequate space */
    min-height: 280px !important; /* Override any min-height */
    max-height: 280px !important; /* Ensure it doesn't exceed 280px */
    overflow: hidden; /* Hide any content that overflows */
}

/* Override the inner home container height */
.home_section.p-0 .home {
    height: 310px !important; /* Match parent height */
    min-height: 280px !important; /* Override default min-height */
    max-height: 310px !important; /* Ensure consistent height */
    overflow: hidden; /* Hide overflow content */
}

/* Override the home-content height */
.home_section.p-0 .home .home-content {
    height: 310px !important; /* Match parent height */
    min-height: 280px !important; /* Override default min-height */
    max-height: 280px !important; /* Ensure consistent height */
    padding: 20px 0 !important; /* Adequate padding for 280px */
    overflow: hidden; /* Hide overflow content */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

/* Properly sized elements for 280px height */
.home_section.p-0 .home .home-content h1 {
    font-size: 2.5rem !important; /* Larger heading for adequate space */
    margin: 10px 0 !important; /* Some margin for spacing */
    line-height: 1.3 !important;
}

.home_section.p-0 .home .home-content h5,
.home_section.p-0 .home .home-content h2 {
    font-size: 1.2rem !important; /* Proper text size */
    margin: 8px 0 !important; /* Some margin for spacing */
    line-height: 1.2 !important;
}

/* Show search panel with adequate space in 280px */
.home_section.p-0 .search-panel {
    display: block !important; /* Show search panel */
    margin: 15px 0 !important; /* Proper spacing */
    padding: 10px !important; /* Adequate padding */
}

/* Ensure search panel fits well in 280px */
.home_section.p-0 .search-panel .search-section {
    margin: 0 !important;
    padding: 10px !important;
}

.home_section.p-0 .search-panel .search-section .search-box {
    margin: 0 !important;
}

/* ========================================
   RESPONSIVE BOOKING ENGINE STYLES
======================================== */

/* Base booking engine styles */
.search-panel {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.search-section .search-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-box .left-part {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.search-body {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px !important;
}

.search-body h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.search-body .form-control {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.search-body .custom-select-wrapper select {
    height: 45px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Passenger selector responsive */
.qty-box {
    position: relative;
}

.selector-box-flight {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.selector-box-flight.show {
    display: block;
}

/* Search button */
.btn-search {
    flex-shrink: 0;
    min-width: 150px;
}

.btn-search .btn {
    height: 45px;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 5px;
}

/* Desktop styles (default) */
@media (min-width: 1200px) {
    .search-box .left-part {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 150px;
        gap: 20px;
        align-items: end;
    }
    
    .search-body {
        margin-bottom: 0 !important;
        min-width: auto;
    }
}

/* Large tablets and small desktops */
@media (max-width: 1199px) and (min-width: 992px) {
    .search-box .left-part {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 15px;
        align-items: end;
    }
    
    .search-body:nth-child(4),
    .search-body:nth-child(5) {
        grid-column: span 1;
    }
    
    .btn-search {
        grid-column: span 3;
        justify-self: center;
        min-width: 200px;
    }
}

/* Tablets */
@media (max-width: 991px) and (min-width: 768px) {
    .search-box .left-part {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        align-items: end;
    }
    
    .search-body:nth-child(5) {
        grid-column: span 2;
    }
    
    .btn-search {
        grid-column: span 2;
        justify-self: center;
        min-width: 200px;
    }
    
    .search-section .search-box {
        padding: 15px;
    }
}

/* Mobile devices */
@media (max-width: 767px) {
    .search-box .left-part {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .search-body {
        width: 100%;
        min-width: auto;
        margin-bottom: 15px !important;
    }
    
    .search-section .search-box {
        padding: 15px;
        margin: 0 10px;
    }
    
    .search-body .form-control,
    .search-body .custom-select-wrapper select {
        height: 50px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-search {
        width: 100%;
        min-width: auto;
    }
    
    .btn-search .btn {
        width: 100%;
        height: 50px;
        font-size: 1.1rem;
    }
    
    /* Passenger selector mobile adjustments */
    .selector-box-flight {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1050;
    }
    
    .selector-box-flight::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .search-section .search-box {
        margin: 0 5px;
        padding: 10px;
    }
    
    .search-body h6 {
        font-size: 0.85rem;
    }
    
    .search-body .form-control,
    .search-body .custom-select-wrapper select {
        height: 48px;
        padding: 12px;
        font-size: 16px;
    }
    
    .btn-search .btn {
        height: 48px;
        font-size: 1rem;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .search-section .search-box {
        margin: 0;
        padding: 8px;
    }
    
    .search-body {
        margin-bottom: 12px !important;
    }
    
    .search-body .form-control,
    .search-body .custom-select-wrapper select {
        height: 45px;
        padding: 10px;
    }
}

/* Add top padding to card-grid-section to make FlyBurundi Deals heading visible */
.card-grid-section.py-5 {
    padding-top: 1rem !important; /* Significantly reduced from 3rem to 1rem to lower heading much more */
    padding-bottom: 3rem !important; /* Keep bottom padding normal */
}

/* Alternative: Target the specific container after home section */
.home_section + .container.py-5.card-grid-section {
    margin-top: -30px; /* Pull the section up closer to home section */
    padding-top: 0.5rem !important; /* Significantly reduced from 2.5rem to 0.5rem to lower heading much more */
}

/* For tablet devices */
@media (max-width: 992px) {
    .home_section.p-0 {
        margin-top: 120px;
        padding-top: 100px;
        margin-bottom: -40px;
        height: 280px !important; /* Keep 280px height on tablet */
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .home_section.p-0 .home {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .home_section.p-0 .home .home-content {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 18px 0 !important;
    }
    
    .home_section.p-0 .home .home-content h1 {
        font-size: 2.2rem !important;
    }
    
    .card-grid-section.py-5 {
        padding-top: 0.75rem !important; /* Significantly reduced from 2.5rem to 0.75rem for tablet */
    }
    
    .home_section + .container.py-5.card-grid-section {
        margin-top: -25px;
        padding-top: 0.25rem !important; /* Significantly reduced from 2rem to 0.25rem for tablet */
    }
}

/* For mobile devices */
@media (max-width: 768px) {
    .home_section.p-0 {
        margin-top: 115px;
        padding-top: 80px;
        margin-bottom: -30px;
        height: 280px !important; /* Keep 280px height on mobile */
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .home_section.p-0 .home {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .home_section.p-0 .home .home-content {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 15px 0 !important;
    }
    
    .home_section.p-0 .home .home-content h1 {
        font-size: 1.8rem !important;
    }
    
    .home_section.p-0 .home .home-content h5,
    .home_section.p-0 .home .home-content h2 {
        font-size: 1rem !important;
    }
    
    .card-grid-section.py-5 {
        padding-top: 0.5rem !important; /* Significantly reduced from 2rem to 0.5rem for mobile */
    }
    
    .home_section + .container.py-5.card-grid-section {
        margin-top: -20px;
        padding-top: 0.25rem !important; /* Significantly reduced from 1.5rem to 0.25rem for mobile */
    }
}

/* For very small mobile devices */
@media (max-width: 480px) {
    .home_section.p-0 {
        margin-top: 110px;
        padding-top: 60px;
        margin-bottom: -20px;
        height: 280px !important; /* Keep 280px height on small mobile */
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .home_section.p-0 .home {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
    }
    
    .home_section.p-0 .home .home-content {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 12px 0 !important;
    }
    
    .home_section.p-0 .home .home-content h1 {
        font-size: 1.5rem !important;
    }
    
    .home_section.p-0 .home .home-content h5,
    .home_section.p-0 .home .home-content h2 {
        font-size: 0.9rem !important;
    }
    
    .card-grid-section.py-5 {
        padding-top: 0.25rem !important; /* Significantly reduced from 1.5rem to 0.25rem for small mobile */
    }
    
    .home_section + .container.py-5.card-grid-section {
        margin-top: -15px;
        padding-top: 0.1rem !important; /* Significantly reduced from 1rem to 0.1rem for small mobile */
    }
}

/* Ensure dropdowns and overlays have proper z-index and space */
.home_section .dropdown-menu,
.home_section .passenger-dropdown,
.home_section .custom-dropdown {
    z-index: 1050 !important; /* Higher than other elements */
    margin-bottom: 20px; /* Space below dropdowns */
}

/* Blog Image Styles */
.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

.blog-detail-image img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.blog-section .blog-box .img-part img {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

/* Blog image loading states */
.blog-card .card-img-top[loading="lazy"],
.blog-detail-image img[loading="lazy"],
.blog-section .blog-box .img-part img[loading="lazy"] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Blog placeholder styling */
.blog-card img[src*="placehold.co"],
.blog-detail-image img[src*="placehold.co"],
.blog-section img[src*="placehold.co"] {
    opacity: 0.8;
    filter: grayscale(20%);
}

/* Responsive blog images */
@media (max-width: 768px) {
    .blog-card .card-img-top {
        height: 180px;
    }
    
    .blog-detail-image img {
        max-height: 300px;
    }
    
    .blog-section .blog-box .img-part img {
        height: 200px;
    }
}

/* Deal Section Card Styles */
.card-grid-section .card {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-grid-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-grid-section .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-grid-section .card:hover .card-img {
    transform: scale(1.05);
}

.card-grid-section .card-img-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent) !important;
    border-radius: 0.5rem;
}

.card-grid-section .card-title {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-grid-section .card-title span {
    transition: transform 0.3s ease;
    display: inline-block;
}

.card-grid-section .card:hover .card-title span {
    transform: translateX(5px);
}

/* Ensure proper aspect ratios for different card types */
.card-grid-section .col-md-6 > .card {
    min-height: 300px; /* Large cards */
}

.card-grid-section .col-md-6 .col-md-6 .card {
    min-height: 200px; /* Medium cards */
}

.card-grid-section .col-12 .card {
    min-height: 150px; /* Small cards */
}

/* Loading state for images */
.card-grid-section .card-img[loading="lazy"] {
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-grid-section .card {
        min-height: 200px;
    }
    
    .card-grid-section .card-title {
        font-size: 1rem;
    }
    
    .card-grid-section h6.card-title {
        font-size: 0.9rem;
    }
}

/* Link styling for clickable cards */
.card-grid-section a {
    color: inherit;
    text-decoration: none;
}

.card-grid-section a:hover {
    color: inherit;
}

/* File Input Fixes for Permissions Policy Issues */
input[type="file"] {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    background: white !important;
    border: 1px solid #ced4da !important;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #495057 !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

input[type="file"]:focus {
    border-color: #80bdff !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

input[type="file"]:hover {
    border-color: #adb5bd !important;
    cursor: pointer !important;
}

/* Django Admin File Input Fixes */
.field-image input[type="file"],
.admin input[type="file"] {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
    background: white !important;
    border: 1px solid #ddd !important;
    padding: 5px !important;
    margin: 5px 0 !important;
}

/* Ensure file input containers don't block clicks */
.field-image,
.form-group:has(input[type="file"]),
.file-input-container {
    position: relative !important;
    z-index: 999 !important;
    pointer-events: auto !important;
}

/* Remove any overlays that might block file inputs */
input[type="file"]::before,
input[type="file"]::after {
    display: none !important;
}

/* Ensure file input labels are clickable */
label[for*="file"],
label:has(input[type="file"]) {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Bootstrap file input fixes */
.form-control[type="file"] {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Additional fixes for common frameworks */
.custom-file-input,
.form-file-input {
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
}

/* Ensure proper stacking context */
form:has(input[type="file"]) {
    position: relative !important;
    z-index: 998 !important;
}

/* Debug styles (remove in production) */
input[type="file"].debug {
    border: 3px solid red !important;
    background: yellow !important;
}

/* Responsive file input fixes */
@media (max-width: 768px) {
    input[type="file"] {
        font-size: 14px !important;
        padding: 8px !important;
        width: 100% !important;
    }
}

/* Ensure proper spacing */
.fas + span, .far + span, .fab + span, .fa + span {
    margin-left: 0.5em;
}

span + .fas, span + .far, span + .fab, span + .fa {
    margin-left: 0.5em;
}

/* Footer Balancing and Responsive Design */
.footer .order-row {
    display: flex;
    flex-wrap: wrap;
}

.footer .order-cls {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.footer-space {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-content {
    flex-grow: 1;
}

/* Footer blog media styling */
.footer-blog .media {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-blog .media:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.footer-blog .img-part {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.footer-blog .img-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-blog .media-body h6 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.footer-blog .media-body h6 a {
    color: #333 !important;
    text-decoration: none;
}

.footer-blog .media-body h6 a:hover {
    color: #007bff !important;
}

.footer-blog .media-body p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 5px;
    color: #555 !important;
}

.footer-blog .media-body small {
    font-size: 11px;
    color: #666 !important;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .footer .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 991px) {
    .footer .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .footer .order-cls {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 767px) {
    .footer .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .footer .order-cls {
        margin-bottom: 1rem;
    }
    
    .footer-blog .media {
        align-items: flex-start;
    }
    
    .footer-blog .img-part {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
}

/* Footer links styling */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #007bff;
}

/* Contact list styling */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    color: #333;
    font-size: 14px;
}

.contact-list li i {
    margin-right: 10px;
    margin-top: 2px;
    color: #007bff;
    flex-shrink: 0;
}

/* Footer title consistency */
.footer-title h5 {
    color: #333 !important;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer logo styling */
.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

/* Footer description text */
.footer .contact-detail p {
    color: #333 !important;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Additional footer improvements */
.footer {
    background: rgba(144, 238, 144, 0.45) !important; /* Light green with 45% opacity */
}

.footer-light {
    position: relative;
    background: rgba(144, 238, 144, 0.45) !important; /* Light green with 45% opacity */
}

.footer-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.05); /* Very subtle dark overlay for better text readability */
    pointer-events: none;
}

/* Sub-footer styling */
.sub-footer {
    background: rgba(144, 238, 144, 0.6) !important; /* Slightly darker green for sub-footer */
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
}

.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.footer-social ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social ul li a:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.copy-right {
    text-align: right;
    color: #333;
    font-size: 14px;
}

.copy-right p {
    color: #333 !important;
}

@media (max-width: 767px) {
    .footer-social ul {
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .copy-right {
        text-align: center;
    }
    
    .sub-footer .row {
        flex-direction: column-reverse;
    }
}

/* Ensure equal height columns */
@media (min-width: 1200px) {
    .footer .order-row {
        display: flex;
        align-items: stretch;
    }
    
    .footer .order-cls {
        display: flex;
        flex-direction: column;
    }
    
    .footer-space,
    .footer-content {
        flex: 1;
    }
}

/* Mobile menu improvements for footer */
.footer-title.mobile-title {
    cursor: pointer;
    position: relative;
}

.footer-title.mobile-title::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    display: none;
}

@media (max-width: 767px) {
    .footer-title.mobile-title::after {
        display: block;
    }
    
    .footer-content {
        display: none;
    }
    
    .footer-content.active {
        display: block;
    }
    
    .footer-title.mobile-title.active::after {
        content: '−';
    }
}

/* Light green footer specific overrides */
.footer-light .footer-title h5,
.footer-light .contact-detail p,
.footer-light .footer-links a,
.footer-light .contact-list li,
.footer-light .footer-blog .media-body h6 a,
.footer-light .footer-blog .media-body p,
.footer-light .footer-blog .media-body small {
    text-shadow: none !important;
}

/* Ensure buttons in footer work well with light background */
.footer .btn-outline-light {
    border-color: #333;
    color: #333;
}

.footer .btn-outline-light:hover {
    background-color: #333;
    border-color: #333;
    color: #fff;
}

/* Make sure any existing dark text styles are overridden */
.footer * {
    color: inherit;
}

/* Specific overrides for any remaining white text */
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
    color: #333 !important;
}

.footer p, .footer span, .footer div {
    color: #333 !important;
}

.footer a {
    color: #333 !important;
}

.footer a:hover {
    color: #007bff !important;
}

/* Card Layout Improvements */
.card-grid-section {
    padding: 80px 0;
    /* padding-top: 510px; */
}

.card-grid-section .card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.card-grid-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(239, 152, 52, 0.435);
}

.card-grid-section .card-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-grid-section .card:hover .card-img {
    transform: scale(1.05);
}

.card-grid-section .card-img-overlay {
    background: linear-gradient(transparent, rgba(20, 146, 6, 0.623));
    padding: 20px;
}

.card-grid-section .card-title {
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}

.card-grid-section .card-title span {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.card-grid-section .card:hover .card-title span {
    transform: translateX(5px);
}

/* Specific heights for different card types */
.card-grid-section .col-md-6 > .card {
    min-height: 300px;
}

.card-grid-section .col-md-6 .col-md-6 .card {
    min-height: 200px;
}

.card-grid-section .col-12 .card {
    min-height: 250px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-grid-section .card {
        min-height: 200px !important;
        margin-bottom: 20px;
    }
    
    .card-grid-section .card-img-overlay {
        padding: 15px;
    }
    
    .card-grid-section .card-title {
        font-size: 1rem;
    }
}

/* Ensure proper spacing between nested rows */
.card-grid-section .row .row {
    margin: 0;
}

.card-grid-section .row .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* SourceSans3 Font Override - Apply to entire website */
/* Ensure font loads with fallback */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Universal font override */
* {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Body and main elements */
body {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* All heading elements */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Title elements */
.title-1 .title-label,
.title-3 .title-label {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Form elements */
input, textarea, select, button {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Navigation and menu elements */
nav, .nav, .navbar, .menu {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Button elements */
.btn, button, [type="button"], [type="submit"], [type="reset"] {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Table elements */
table, th, td {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* List elements */
ul, ol, li {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Paragraph and text elements */
p, span, div, a, label {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Specific overrides for common elements that might resist font changes */
.container, .container-fluid, .row, .col, [class*="col-"] {
    font-family: 'Source Sans 3', 'SourceSans3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Homepage title alignment - make all title-1 elements left-aligned */
.home-page .title-1 {
    text-align: left !important;
}

.home-page .title-1 .title-label {
    margin-left: 0;
    margin-right: auto;
    display: inline-block;
}

.home-page .title-1 h2 {
    text-align: left;
}

.home-page .title-1.detail-title p {
    max-width: 100%;
    margin: 0;
    text-align: left;
}

/* Specific adjustments for different title-1 variations */
.home-page .title-1.title-5 {
    text-align: left !important;
}

.home-page .title-1.title-5 .title-label {
    margin-left: 0;
    margin-right: auto;
}

.home-page .title-1.title-5 h2 {
    text-align: left;
}

.home-page .title-1.title-5 p {
    text-align: left;
    margin-left: 0;
}

/* Ensure rounded title labels are also left-aligned */
.home-page .title-1.rounded .title-label {
    margin-left: 0;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-page .title-1 {
        text-align: left !important;
    }
    
    .home-page .title-1 .title-label {
        margin-left: 0;
    }
    
    .home-page .title-1 h2 {
        text-align: left;
    }
}

/* Footer blog styling */
.footer-blog .media {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-blog .media:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-blog .img-part {
    width: 80px;
    height: 80px;
    overflow: hidden;
    margin-right: 15px;
}

.footer-blog .img-part img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-blog .media-body h5 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.footer-blog .media-body p {
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.footer-blog .btn-outline-light {
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 3px;
}

/* Blog page styling */
.blog-header {
    background-color: #f8f9fa;
    padding: 60px 0 30px;
    margin-bottom: 30px;
}

.blog-header-content {
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 15px;
    color: #333;
}

/* Blog card styling */
.blog-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    height: 200px;
    object-fit: cover;
}

.blog-date {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    text-align: center;
    line-height: 1;
}

.blog-date span {
    display: block;
}

.blog-title {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-title a {
    color: #333;
    text-decoration: none;
}

.blog-title a:hover {
    color: #dc3545;
}

.blog-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.blog-meta span {
    margin-right: 15px;
}

.blog-meta i {
    margin-right: 5px;
}

/* ============================================
   BOOKING PANEL CSS
============================================ */

/* Airport Search Autocomplete Styles */
.airport-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.airport-suggestion {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    transition: background-color 0.2s ease;
}

.airport-suggestion:hover,
.airport-suggestion.active {
    background-color: #f8f9fa;
}

.airport-suggestion:last-child {
    border-bottom: none;
}

.airport-code {
    font-weight: bold;
    color: #28a745;
    font-size: 0.9em;
}

.airport-name {
    font-size: 0.9em;
    color: #333;
    margin: 2px 0;
}

.airport-city {
    font-size: 0.8em;
    color: #666;
}

/* Booking Form Styles */
#bookingForm {
    position: relative;
}

#bookingForm .form-control {
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

#bookingForm .form-control:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background: white;
}

#bookingForm .form-control::placeholder {
    color: #666;
}

/* Trip Type Dropdown */
.trip-type-option {
    cursor: pointer;
}

/* Airport Search Input Container */
.position-relative {
    position: relative;
}

.airport-search {
    position: relative;
    z-index: 1;
}

/* Passenger Counter Styles */
.passenger-count {
    min-width: 40px;
    text-align: center;
    pointer-events: none;
    background: transparent;
    border: 1px solid #6c757d;
    color: #333;
}

.passenger-btn {
    min-width: 35px;
    padding: 0.25rem 0.5rem;
}

.passenger-btn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Loading and Error States */
.booking-loading {
    opacity: 0.7;
    pointer-events: none;
}

.booking-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.booking-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Swap Button */
#swapAirports {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    transition: all 0.3s ease;
}

#swapAirports:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: rotate(180deg);
}

/* Book Flight Button */
#bookFlightBtn {
    background-color: white;
    color: #28a745;
    border: 2px solid white;
    font-weight: 600;
    transition: all 0.3s ease;
}

#bookFlightBtn:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

#loadingBtn {
    background-color: rgba(255, 255, 255, 0.8);
    color: #28a745;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

/* Date Input Styling */
input[type="date"] {
    color: #333;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .airport-suggestions {
        font-size: 0.9em;
        max-height: 150px;
    }
    
    .airport-suggestion {
        padding: 0.5rem;
    }
    
    #bookingForm .form-control {
        height: 45px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .passenger-dropdown .dropdown-menu {
        min-width: 280px !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Mobile booking form adjustments */
    #bookingForm .row.g-2 {
        gap: 0.75rem;
    }
    
    #bookingForm .col-md {
        margin-bottom: 0.5rem;
    }
    
    #swapAirports {
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .airport-suggestions {
        font-size: 0.85em;
        max-height: 120px;
    }
    
    #bookingForm .card {
        padding: 1rem !important;
    }
    
    #bookingForm .d-flex.align-items-center.mb-3 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }
    
    #bookingForm .dropdown.me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
    
    #bookingForm .row.g-2 {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    #bookingForm .col-auto {
        order: 3;
        align-self: center;
    }
    
    #swapAirports {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Airport Search Loading State */
.airport-search.loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23666' d='M10 3.5a6.5 6.5 0 1 0 6.5 6.5h-1.5a5 5 0 1 1-5-5V3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}

/* Accessibility Improvements */
.airport-suggestion:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
    background-color: #e3f2fd;
}

.form-control:focus {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .airport-suggestions {
        border: 2px solid #000;
    }
    
    .airport-suggestion:hover,
    .airport-suggestion.active {
        background-color: #000;
        color: #fff;
    }
    
    .booking-error {
        border: 2px solid #dc3545;
    }
    
    .booking-success {
        border: 2px solid #28a745;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .airport-suggestion,
    #swapAirports,
    #bookFlightBtn,
    .passenger-btn {
        transition: none;
    }
    
    #swapAirports:hover {
        transform: none;
    }
    
    .fa-spinner.fa-spin {
        animation: none;
    }
    
    .airport-search.loading {
        animation: none;
    }
}
/* booking panel css  */