@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@200;400;700&display=swap');

h1, h2, h3, h4, h5, h6, p ,strong,span,select,input,button,li,div{
    font-family: 'Readex Pro', sans-serif !important;
}
h1{
    font-weight: 500 !important;
}

.small-note-input {
    width: 150px !important;
}
/* --- Base & Typography --- */
body {
    font-family: 'Poppins', sans-serif; /* Use a modern, clean font */
    background-color: #f8f9fa; /* A very light gray background */
    color: #343a40; /* Darker gray for text for better readability */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600; /* Slightly bolder headings */
}

a {
    text-decoration: none; /* Remove underlines by default */
    transition: color 0.2s ease-in-out;
}

a:hover {
    text-decoration: none; /* Keep underlines off on hover too */
}

/* --- Navbar Enhancements --- */
.navbar {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.navbar .navbar-brand span {
    color: #343a40;
}

.navbar .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.6rem 1rem;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bs-primary); /* Use Bootstrap primary color on hover/active */
}

/* Optional: Add a subtle underline effect on hover */
.navbar .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    transition: width 0.3s ease-in-out;
}

.navbar .nav-link:hover::before,
.navbar .nav-link.active::before {
    width: 60%; /* Adjust width as needed */
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.navbar .dropdown-item {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.navbar .dropdown-item:hover {
     background-color: var(--bs-primary);
     color: white;
}

/* --- Footer Enhancements --- */
footer a {
    color: #adb5bd; /* Lighter gray for footer links */
}

footer a:hover {
    color: #ffffff; /* White on hover */
    text-decoration: underline;
}

footer .text-primary {
    color: #0d6efd !important; /* Ensure brand color stands out */
}

footer .btn-floating {
    color: #fff;
    transition: transform 0.2s ease, color 0.2s ease;
}

footer .btn-floating:hover {
    transform: scale(1.1);
    color: var(--bs-primary); /* Highlight social icons on hover */
}

/* --- General & Bootstrap Overrides --- */
.card {
    border: none; /* Remove default card borders for a cleaner look */
    border-radius: 0.5rem; /* Slightly more rounded corners */
}

.card-header {
    border-bottom: 1px solid #e9ecef; /* Lighter border for headers */
    background-color: #fff;
}

.btn {
    border-radius: 0.375rem; /* Standard Bootstrap radius, can be adjusted */
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}

/* --- Add RTL support adjustments if needed --- */
[dir="rtl"] .navbar-nav {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-1 { margin-left: 0.25rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }
[dir="rtl"] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir="rtl"] .ms-auto { margin-left: auto !important; margin-right: 0 !important; }
[dir="rtl"] .ms-lg-2 { margin-left: 0.5rem !important; margin-right: 0 !important; }

.banner-carousel .carousel-item {
    min-height: 280px; /* Adjust height as needed */
    max-height: 400px;
    background-color: #6c757d; /* Fallback color if no image */
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative; /* Needed for overlay and content positioning */
}
@media (max-width: 767px) {
    .banner-carousel .carousel-item {
        min-height: 140px; /* Smaller min-height for mobile */
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .banner-carousel .carousel-item {
        min-height: 200px; /* You can adjust this as needed */
    }
}

.banner-carousel .banner-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease-in-out; /* Subtle zoom effect */
}

.banner-carousel .carousel-item:hover .banner-background-image {
    transform: scale(1.05);
}

.banner-carousel .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2)); /* Gradient overlay */
    z-index: 1;
}

.banner-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: auto; /* Override Bootstrap default */
    bottom: auto; /* Override Bootstrap default */
    transform: translateY(-50%);
    z-index: 2;
    text-align: left;
    padding: 3rem 4rem; /* More padding */
    width: 60%; /* Limit width on larger screens */
    color: #fff;
}

.banner-carousel .carousel-caption h5 {
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-carousel .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-carousel .btn-banner {
    padding: 0.75rem 1.8rem;
    font-weight: 600;
}

.banner-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.banner-carousel .carousel-indicators .active {
    background-color: #fff;
}

.banner-carousel .carousel-control-prev-icon,
.banner-carousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50% 50%;
}

/* RTL Specific adjustments */
[dir="rtl"] .banner-carousel .carousel-caption {
    left: auto;
    right: 0;
    text-align: right;
}

[dir="rtl"] .banner-carousel .banner-overlay {
     background: linear-gradient(to left, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
}

/* Adjustments for banners without images */
.banner-carousel .banner-no-image {
    background: linear-gradient(to right, #007bff, #0056b3); /* Example gradient */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-carousel .banner-no-image .carousel-caption {
    position: static; /* Override absolute positioning */
    transform: none;
    width: 100%;
    text-align: center;
    padding: 3rem 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-carousel .carousel-caption {
        width: 80%;
        padding: 2rem;
    }
     .banner-carousel .carousel-caption h5 {
        font-size: 1.4rem;
    }
    .banner-carousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

    .timeline {
        position: relative;
        padding-left: 50px;
        list-style: none;
        margin-top: 20px; /* Add some space */
    }
    .timeline-item {
        position: relative;
        padding-bottom: 25px;
    }
    .timeline-item:last-child { padding-bottom: 0; }
    .timeline-item::before {
        content: ''; position: absolute; left: -31px; top: 0; bottom: 0;
        width: 2px; background-color: #e9ecef;
    }
    .timeline-item:first-child::before { top: 5px; }
    .timeline-item:last-child::before { bottom: calc(100% - 25px); }
    .timeline-icon {
        position: absolute; left: -45px; top: 0; width: 30px; height: 30px;
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        z-index: 10; font-size: 1.1em; color: white;
    }
    .timeline-icon.bg-success { background-color: #198754 !important; }
    .timeline-icon.bg-secondary { background-color: #6c757d !important; }
    .timeline-icon.bg-light {
        background-color: #f8f9fa !important; border: 1px solid #dee2e6; color: #6c757d;
    }
    .timeline-content {
        background-color: #f8f9fa; padding: 15px; border-radius: 5px;
        border: 1px solid #e9ecef; position: relative;
    }
    .timeline-content-detail {
        padding-left: 20px; border-left: 2px solid #e9ecef;
        margin-left: -17px; margin-top: 10px;
    }

    /* --- Base Stepper (LTR) --- */
    .stepper-wrapper {
        display: flex; justify-content: space-between; margin-bottom: 40px; position: relative;
    }
    .stepper-item {
        position: relative; display: flex; flex-direction: column; align-items: center;
        flex: 1; text-align: center;
    }
    .stepper-item::before, .stepper-item::after {
        position: absolute; content: ""; top: 20px; z-index: 2;
        border-bottom: 2px solid #e9ecef; width: 100%;
    }
    .stepper-item::before { left: -50%; }
    .stepper-item::after {
        border-bottom-color: #198754; width: 0; left: -50%; z-index: 3;
        transition: width 0.5s ease-in-out;
    }
    .stepper-item .step-counter {
        position: relative; z-index: 5; display: flex; justify-content: center;
        align-items: center; width: 40px; height: 40px; border-radius: 50%;
        background: #e9ecef; margin-bottom: 6px; transition: background-color 0.5s ease-in-out;
    }
    .stepper-item.completed .step-counter { background: #198754; color: white; }
    .stepper-item.completed::after { width: 100%; }
    .stepper-item:first-child::before, .stepper-item:first-child::after { content: none; }
    .step-name { font-size: 0.85rem; font-weight: 500; }

    /* --- Search Form --- */
    .form-control-lg { padding: 0.75rem 1.25rem; font-size: 1.25rem; }
    .btn-lg { padding: 0.75rem 1.25rem; }

    /* --- RTL Overrides --- */
    [dir="rtl"] .timeline { padding-left: 0; padding-right: 50px; }
    [dir="rtl"] .timeline-item::before { left: auto; right: -31px; }
    [dir="rtl"] .timeline-icon { left: auto; right: -45px; }
    [dir="rtl"] .timeline-content-detail {
        padding-left: 0; padding-right: 20px; border-left: none;
        border-right: 2px solid #e9ecef; margin-left: 0; margin-right: -17px;
    }
    [dir="rtl"] .stepper-item::before { left: auto; right: 50%; }
    [dir="rtl"] .stepper-item::after { left: auto; right: 50%; }
    [dir="rtl"] .stepper-item:first-child::before, [dir="rtl"] .stepper-item:first-child::after { content: ""; }
    [dir="rtl"] .stepper-item:last-child::before, [dir="rtl"] .stepper-item:last-child::after { content: none; }
    [dir="rtl"] .text-start { text-align: right !important; }
    [dir="rtl"] .me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
    [dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
    [dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
    [dir="rtl"] .ms-md-auto { margin-right: auto !important; margin-left: 0 !important; }
    [dir="rtl"] .fa-map-pin.me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
    [dir="rtl"] .fa-clock.me-1 { margin-right: 0 !important; margin-left: 0.25rem !important; }
    [dir="rtl"] .fa-sticky-note.fa-2x.me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
    [dir="rtl"] .fa-search.me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
    [dir="rtl"] .fa-map-marker-alt.me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
/* Wrapper to control the centering of the list */
.social-media-icons-wrapper {
    display: flex;
    justify-content: center; /* Horizontally centers the ul.social-media-list */
    width: 100%; /* Ensures the wrapper takes available width to center within */
    /* Add padding here if you want space around the centered icons, e.g., padding: 1rem 0; */
}

/* The list of social icons */
.social-media-list {
    list-style: none;     /* Removes bullet points */
    padding-left: 0;      /* Removes default list padding */
    margin-bottom: 0;     /* Removes default list margin, or adjust as needed */
    display: flex;        /* Arranges icons (li items) horizontally */
    gap: 1rem;            /* Creates space between the icons (modern CSS) */
    /* If 'gap' is not supported in older browsers you might target:
       .social-media-item:not(:last-child) { margin-right: 1rem; } */
    align-items: center;  /* Vertically aligns icons if they have different heights */
}

/* Styling for individual list items (usually not much needed here) */
.social-media-item {
    /* Individual item styling if necessary */
}

/* Styling for the actual links */
.social-icon-link {
    color: #343a40; /* Example: Bootstrap's text-dark */
    text-decoration: none;
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out; /* Smooth hover effects */
    display: inline-block; /* Allows transform */
}

.social-icon-link:hover {
    color: #007bff; /* Example: Bootstrap's primary blue */
    transform: scale(1.1); /* Slightly enlarge icon on hover */
}

/* Styling for the Font Awesome icons */
.social-icon-link i.fa-lg {
    /* fa-lg already makes them large. Adjust font-size here if needed further. */
    /* Example: font-size: 1.5rem; */
}


#floatingWhatsappBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px; /* Size of the WhatsApp icon */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 1000; /* Ensure it's above other content */
}

#floatingWhatsappBtn:hover {
    background-color: #1DA851; /* Darker green on hover */
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#floatingWhatsappBtn i {
    line-height: 1; /* Helps with vertical alignment of the icon */
}

/* Example content to show scrolling */
.content-placeholder {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.content-placeholder h1 {
    margin-top:0;
}

/* === Compact tracking card overrides === */
.tracking-compact {
    --sp-xs: .35rem;     /* base spacing */
    --sp-s : .5rem;
    --fs-xs: .75rem;     /* font sizes */
    --fs-s : .875rem;
}

/* general card */
.tracking-compact .card        { margin-top: var(--sp-s); }
.tracking-compact .card-header { padding: var(--sp-s); font-size: var(--fs-s); }
.tracking-compact .card-body   { padding: var(--sp-s) var(--sp-s) var(--sp-xs); }

/* badges & headings */
.tracking-compact h3,
.tracking-compact h4,
.tracking-compact h5 { margin-bottom: var(--sp-xs); font-size: var(--fs-s); }
.tracking-compact .badge { font-size: var(--fs-xs); padding:.25em .45em; }


/* timeline */
.tracking-compact .timeline      { margin: 0 0 var(--sp-s); }
.tracking-compact .timeline-item { padding: var(--sp-xs) 0; }
.tracking-compact .timeline-icon {
    width: 1.5rem; height: 1.5rem;
    font-size: .65rem; line-height: 1.2rem;
}
.tracking-compact .timeline-content { font-size: var(--fs-s); padding: 5px; }
