/********** Template CSS **********/
:root {
    --primary: #080808;
    --secondary: #080808;
    --light: #F5F5F5;
    --dark: #550000;
}

/***** VIUNGO (LINKS) *****/


.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 300;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Bebas Neue', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 300;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 992px) {
    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: #f7f7f7;
    }

    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}


/*** Hero Header ***/




/* end of hero header */




/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

/* .section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
} */

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}


/*** Destination ***/
.destination img {
    transition: .5s;
}

.destination a:hover img {
    transform: scale(1.1);
}


/*** Package ***/
.package-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Make the whole box take full height */
    box-shadow: 0 0 45px rgba(243, 4, 4, 0.08);
    text-decoration: none; /* Ensure text link does not break */
}

.package-item .overflow-hidden {
    flex-grow: 1; /* Makes the image container take available space */
}

.package-item img {
    width: 100%;  /* Full width */
    height: 100%; /* Full height */
    object-fit: cover; /* Ensures the image covers the box without stretching */
    transition: .5s;
}

.package-item:hover img {
    transform: scale(1.1);
}

.text-center.p-4 {
    flex-grow: 1; /* Ensures text section takes full space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-center.p-4 p {
    margin-top: auto; /* Push text to the bottom */
}

.package-item {
    box-shadow: 0 0 45px rgba(243, 4, 4, 0.08); /* Default shadow */
    transition: box-shadow 0.3s ease-in-out;
}

.package-item:focus, 
.package-item:active, 
.package-item:hover {
    box-shadow: 0 0 25px rgba(150, 87, 0, 0.5); /* Stronger shadow when selected */
    outline: none; /* Removes default browser outline */
}

/*** Booking ***/
/* .booking {
    background: linear-gradient(rgba(15, 23, 43, .7), rgba(15, 23, 43, .7)), url(../img/booking.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
} */


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(243, 8, 8, 0.08);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .btn {
    background: #FFFFFF;
    color: var(--primary);
    border-radius: 20px;
    border-bottom: 1px solid var(--primary);
}

.team-item .btn:hover {
    background: var(--primary);
    color: #FFFFFF;
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-item .testimonial-item,
.testimonial-carousel .owl-item.center .testimonial-item * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-item * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 1px solid #CCCCCC;
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 300;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* my css start here */

.custom-logo {
    width: 140px; /* Adjust width */
    height: 140px; /* Adjust height */
    object-fit: contain; /* Ensures the logo scales without distortion */
}

/* Override Bootstrap's default constraints */
.navbar-brand img {
    max-height: none !important; /* Remove default max-height */
    height: auto; /* Allow custom height */
}



/* Dropdownn */


/* Destinations na Trekking - Border radius */
/* Dropdown ya Safari & Tours - safu mbili */
/* Ensure dropdown works properly */
.safari-tours-dropdown .dropdown-menu {
    display: none; /* Hide by default */
    grid-template-columns: 1fr 1fr; /* Two columns */
    column-gap: 20px;
    row-gap: 2px;
    padding: 10px;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background-color: #fff;
    z-index: 1050;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Fix dropdown visibility */
.safari-tours-dropdown .dropdown-menu.show {
    display: grid !important; /* Ensure it's displayed */
}

/* Mobile view adjustments */
@media (max-width: 768px) {
    .safari-tours-dropdown .dropdown-menu {
        grid-template-columns: 1fr; /* One column layout */
        width: auto;
        position: static; /* Avoid absolute positioning on mobile */
        transform: none;
        left: 0;
    }
    .safari-tours-dropdown .dropdown-item {
        text-align: left;
        padding: 5px;
    }
}




/* whatsapp and wechat icon */




/* SOCIAL MEDIAS */
/* ===== CHAT WIDGET STYLES ===== */

/* Chat Widget Container */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Main Chat Button */
.main-chat-btn {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #750202 0%, #750202 100%);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(90, 38, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.main-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(90, 38, 0, 0.4);
}

/* Social Buttons Column */
.social-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.chat-widget-container:hover .social-column {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Social Button Container */
.social-btn-container {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

/* Individual Social Buttons */
.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.tooltip::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #333;
}

.social-btn:hover .tooltip,
.main-chat-btn:hover .tooltip {
    opacity: 1;
}

/* Social Button Colors */
.whatsapp { background-color: #25D366; }
.wechat { background-color: #09B83E; }
.facebook { background-color: #1877F2; }
.instagram {
    background: radial-gradient(circle at 30% 107%, 
        #fdf497 0%, #fdf497 5%, 
        #fd5949 45%, #d6249f 60%, 
        #285AEB 90%);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 300px;
    max-width: 90%;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-widget-container {
        bottom: 15px;
        right: 15px;
    }
    
    .main-chat-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .tooltip {
        font-size: 12px;
        padding: 4px 8px;
    }
}

  
 /* WHATSAPP QR CODE ENDS */
  


/* SPONSOR */
/* Responsive adjustments */
.sponsors {
    margin-top: 50px; /* Adjust the value as needed */
    padding-top: 30px; /* Adds extra space if margin doesn't work */
}



@media (max-width: 768px) {
    .sponsors img {
        height: auto; /* Adjust image height based on container width */
        max-height: 60px; /* Ensure the image doesn't get too large on small screens */
    }
    
    .sponsors {
        padding: 10px; /* Add some padding on smaller screens */
    }

    .d-flex {
        justify-content: space-around; /* Distribute images evenly with space between on mobile */
    }
}


/* FORM CSS START HERE */

.apply-button {
    background-color: #080808;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-button:hover {
    background-color: #080808;
}

.button-container {
    display: flex;
    justify-content: space-between; /* Adjust spacing between buttons */
    margin-top: 20px;
}

.close-button {
    background-color: red;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: auto; /* Ensures it stays on the right */
}

.submit-button {
    background-color: #080808;
    color: white;
    padding: 5px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.close-button:hover {
    background-color: darkred;
}

.submit-button:hover {
    background-color: #750202;
}

.modal-content {
    max-width: 600px;
    padding: 7px;
    background: #70b671;
    border-radius: 10px;
    margin: auto;
    box-shadow: 0 4px 10px rgb(22, 20, 18);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Allows scrolling within the modal if content overflows */
    z-index: 9999; /* Ensures it stays on top */
}

.modal[aria-hidden="false"] {
    display: flex;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-item {
    display: flex;
    flex-direction: column;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


.required {
    color: red;
    font-weight: bold;
}


/* textbox size sms */
/* Default styles for all screen sizes */
#message {
    width: 100%; /* Full width of the container */
    height: 200px; /* Set a default height */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    resize: vertical; /* Allow vertical resizing */
}

/* Adjustments for larger screens (desktop) */
@media (min-width: 769px) {
    #message {
        height: 150px; /* Increase height for desktop view */
        font-size: 0.8rem; /* Slightly larger text */
    }
}




/* Mobile-specific styles */
@media (max-width: 768px) {
    .modal-content {
        width: 90%; /* Adjust modal width for smaller screens */
        padding: 15px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Single-column layout for small screens */
    }

    .button-container {
        flex-direction: column;
        align-items: center;
    }

    .submit-button,
    .close-button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Further adjustments for very small devices */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 10px;
    }

    .form-item input,
    .form-item textarea {
        font-size: 0.9rem;
        padding: 10px;
    }

    .submit-button,
    .close-button {
        font-size: 0.9rem;
        padding: 10px 18px;
    }
}



/* This will apply to all service items across all pages */
.service-item {
    transition: background-color 0.3s ease;
    cursor: pointer;
    border-radius: 15px; /* Optional: to match your image style */
    padding: 15px; /* Add some padding so the background covers more area */
}

.service-item:hover,
.service-item:focus-within {
    background-color: #080808; /* Your chosen color */
    color: #fff; /* Optional: change text color for better contrast */
}

/* UGANDA SAFARIS */
/* Custom styles for intl-tel-input */
/* Custom styles for intl-tel-input */

/* Style za rangi za h6 */
.section-title::before,
.section-title::after {
    content: none !important; /* Husema "ondoa yote" */
}

