/* === Package-wide extracted styles === */
.custom-hero-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 520px;
    max-height: 700px;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    min-height: 520px;
    max-height: 700px;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34,34,34,0.35);
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
}
.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffe066;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.safari-container {
    margin-top: 1.2rem;
}
.safari-overview-title {
    color: #222;
    font-weight: 600;
}
.safari-day-label {
    font-weight: 700;
    color: #56500c;
    margin-bottom: 6px;
}
.safari-accom-label {
    font-weight: 600;
    color: #56500c;
    margin-top: 8px;
}
.accom-list {
    margin-bottom: 0;
}
.accom-img-wrap {
    display: flex;
    align-items: stretch;
}
.accom-img {
    object-fit: cover;
    min-height: 100%;
    min-width: 100%;
}
/* Hide navbar contents when scrolled */
.navbar-hide-details .navbar-brand,
.navbar-hide-details .navbar-nav,
.navbar-hide-details .navbar-collapse,
.navbar-hide-details form {
    display: none !important;
}
/* Navbar scrolled state */
.navbar-scrolled {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
    transition: background 0.3s, box-shadow 0.3s;
}
/* Topbar custom z-index to ensure it stays above navbar */
.topbar-custom {
    z-index: 1051;
    position: relative;
}

@media (min-width: 992px) {
    .topbar-custom {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1051;
    }
    .sticky-top.navbar-light {
        top: 45px;
    }
}
/* Ensure footer social icons are visible and styled the same on all pages */
.footer_social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    margin: 0 8px 8px 0;
    background: #fff;
    border-radius: 50%;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.footer_social a:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}
/********** Template CSS **********/
:root {
    --primary: #d8c725;
    --secondary: #ad6235;
    --bs-primary: #d8c725;
    --bs-primary-rgb: 216, 199, 37;
    --bs-secondary: #ad6235;
    --bs-secondary-rgb: 173, 98, 53;
    --bs-success: #d8c725;
    --bs-success-rgb: 216, 199, 37;
    --light: #F5F5F5;
    --dark: #14141F;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Homepage Google Map (full screen) ***/

.homepage-map-block {
    width: 100%;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-map-heading {
    padding-top: 24px;
    padding-bottom: 16px;
}

.homepage-map-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.homepage-map-fullscreen iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/*** Honeymoon package deal cards (listing) ***/
.pkg-deal-card {
    border-radius: 18px;
    overflow: hidden;
    background: #f5f5f5 !important;
    border: 2px solid #ad6235 !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pkg-deal-image {
    overflow: visible;
}

.pkg-deal-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.pkg-deal-badge {
    position: absolute;
    left: 50%;
    bottom: -64px;
    transform: translateX(-50%);
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 5px solid var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.pkg-deal-badge::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 2px dotted rgba(20, 20, 31, 0.45);
}

.pkg-deal-badge-top,
.pkg-deal-badge-bottom {
    font-weight: 800;
    color: var(--dark);
    font-size: 12px;
    line-height: 1;
    position: relative;
}

.pkg-deal-badge-bottom {
    font-size: 10px;
    letter-spacing: 0.4px;
}

.pkg-deal-badge-price {
    font-weight: 900;
    color: var(--secondary);
    font-size: 21px;
    line-height: 1;
    margin: 4px 0;
    position: relative;
}


.pkg-deal-body {
    padding: 72px 16px 16px;
    background: transparent !important;
    color: #111 !important;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.pkg-deal-title {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.05rem;
    line-height: 1.2;
    min-height: 2.2em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.pkg-deal-text {
    font-size: 1.08rem;
    min-height: 60px;
    line-height: 1.7;
}

/*** Package card price overlay ***/
.pkg-card-image {
    overflow: hidden;
}

.pkg-card-price {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--light);
    color: var(--secondary);
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    border: 2px solid var(--secondary);
    line-height: 1;
}

.pkg-card-price sub {
    font-size: 0.7em;
    font-weight: 800;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    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: 'Nunito', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: #FFFFFF !important;
    font-size: 18px;
    font-weight: 600;
    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: #FFFFFF;
    }

    .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 ***/
.hero-header {
    background: linear-gradient(rgba(20, 20, 31, 0.15), rgba(20, 20, 31, 0.15)), url(../img/4-day-serengeti-and-ngorongoro.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    margin-top: -80px; /* Pull hero up behind navbar */
    padding-top: 80px;  /* Prevent content from hiding under navbar */
}

@media (max-width: 767.98px) {
    .hero-header {
        min-height: 60vh;
        height: 60vh;
        background-size: cover !important;
        background-position: center center;
        background-color: transparent !important;
        margin-top: 0;
        padding-top: 60px;
    }
    .hero-header h1,
    .hero-header .display-5 {
        font-size: 2rem !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    }
    .hero-header p {
        font-size: 1.2rem !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }
    .hero-slider-dots {
        gap: 6px;
    }
}


/* Consistent hero section heading style for all pages */
.hero-header h1.display-3,
.about-hero-header h1.display-3,
.testimonials-hero-header h1.display-3,
.service-hero-header h1.display-3,
.destination-hero-header h1.display-3,
.contact-hero-header h1.display-3,
.blog-hero-header h1.display-3 {
    color: #d8c725 !important; /* Gold/yellow color */
    text-shadow: 2px 2px 8px rgba(20,20,31,0.7), 0 2px 16px rgba(0,0,0,0.3);
}

/* Custom hero header for testimonials page */
.testimonials-hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, 0.15), rgba(20, 20, 31, 0.15)), url(../img/4-day-serengeti-and-ngorongoro.webp) !important;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

.hero-slider-dots {
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    padding: 0;
}

.hero-dot.active {
    background: rgba(255, 255, 255, 1);
    animation: heroDotBlink 1.2s infinite;
}

@keyframes heroDotBlink {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(0.85);
    }
}

/* Custom hero header for about us */
.about-hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, 0.15), rgba(20, 20, 31, 0.15)), url(../img/4-days-about-tanzania-safari-source.webp) !important;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

/* About page image card fit */
.about-image-card {
    min-height: 400px;
}

/* About page typography (readability) */
.about-page {
    font-size: 1.1rem;
    line-height: 1.75;
}

/* Home page: force any Bootstrap accents to brand palette */
.home-page {
    --bs-primary: #d8c725;
    --bs-primary-rgb: 216, 199, 37;
    --bs-secondary: #ad6235;
    --bs-secondary-rgb: 173, 98, 53;
    --bs-success: #d8c725;
    --bs-success-rgb: 216, 199, 37;
}

.home-page .text-primary,
.home-page .link-primary,
.home-page .link-primary:hover,
.home-page .link-primary:focus,
.home-page .text-success,
.home-page .link-success,
.home-page .link-success:hover,
.home-page .link-success:focus {
    color: #d8c725 !important;
}

.home-page .bg-primary,
.home-page .bg-success {
    background-color: #d8c725 !important;
}

.home-page .border-primary,
.home-page .border-success {
    border-color: #d8c725 !important;
}

.home-page .btn-primary,
.home-page .btn-success {
    background-color: #d8c725 !important;
    border-color: #d8c725 !important;
}

.home-page .btn-outline-primary,
.home-page .btn-outline-success {
    color: #d8c725 !important;
    border-color: #d8c725 !important;
}

.home-page .btn-outline-primary:hover,
.home-page .btn-outline-primary:focus,
.home-page .btn-outline-success:hover,
.home-page .btn-outline-success:focus {
    background-color: #d8c725 !important;
    border-color: #d8c725 !important;
}

.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/*** Package card price overlay ***/
.pkg-card-image {
    overflow: hidden;
}

.pkg-card-price {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: var(--light);
    color: var(--secondary);
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    border: 2px solid var(--secondary);
    line-height: 1;
}


/* Custom hero header for service */
.service-hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, 0.15), rgba(20, 20, 31, 0.15)), url(../img/4_days_serengeti_and_ngorongoro_luxury.webp) !important;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

/* Custom hero header for destination */
.destination-hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, 0.15), rgba(20, 20, 31, 0.15)), url(../img/4-days-big-animal.webp) !important;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

/* Custom hero header for contact */
.contact-hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, 0.15), rgba(20, 20, 31, 0.15)), url(../img/about-tanzania-safari-source-tours.webp) !important;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

/* Custom hero header for blogs */
.blog-hero-header {
    background-image: linear-gradient(rgba(20, 20, 31, 0.08), rgba(20, 20, 31, 0.08)), url(../img/4-days-serengeti-and-ngorongoro-great-migration.webp) !important;
    min-height: 100vh;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5);
}


/*** 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;
}

/*** Global brand color override (replace Bootstrap green) ***/
:root {
    --brand-primary: #d8c725;
    --brand-primary-rgb: 216, 199, 37;
    --brand-secondary: #ad6235;
    --brand-dark: #56500c;
}

a,
.btn-link,
.link-primary,
.nav-link,
.page-link {
    color: var(--brand-primary) !important;
}

a:hover,
a:focus,
.btn-link:hover,
.btn-link:focus,
.link-primary:hover,
.link-primary:focus,
.nav-link:hover,
.nav-link:focus,
.page-link:hover,
.page-link:focus {
    color: var(--brand-dark) !important;
}

.text-primary,
.text-success {
    color: var(--brand-primary) !important;
}

.text-secondary {
    color: var(--brand-secondary) !important;
}

.bg-primary,
.bg-success {
    background-color: var(--brand-primary) !important;
}

.bg-secondary {
    background-color: var(--brand-secondary) !important;
}

.border-primary,
.border-success {
    border-color: var(--brand-primary) !important;
}

.border-secondary {
    border-color: var(--brand-secondary) !important;
}

.btn-primary,
.btn-success {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #000 !important;
}

.btn-secondary {
    background-color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
    color: #fff !important;
}

.btn-outline-primary,
.btn-outline-success {
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.btn-outline-secondary {
    color: var(--brand-secondary) !important;
    border-color: var(--brand-secondary) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-success:hover,
.btn-outline-success:focus {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #000 !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
    color: #fff !important;
}

.btn:focus,
.btn-check:focus + .btn,
.form-control:focus,
.form-select:focus,
.accordion-button:focus,
.page-link:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 .25rem rgba(var(--brand-primary-rgb), 0.25) !important;
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

/*** FAQ (Accordion) ***/
#faqAccordion .accordion-button:not(.collapsed) {
    background-color: var(--brand-dark) !important;
    color: #FFFFFF !important;
}

#faqAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

#faqAccordion .accordion-body {
    background-color: var(--brand-dark);
    color: #FFFFFF;
}

.progress-bar,
.list-group-item.active,
.dropdown-item.active,
.dropdown-menu-dark .dropdown-item.active,
.nav-pills .nav-link.active,
.page-item.active .page-link {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.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);
}


/*** Booking Card ***/
.booking-card {
    background-color: #56500c !important;
}

.booking-card,
.booking-card label,
.booking-card .form-label,
.booking-card .form-check-label,
.booking-card p {
    color: #FFFFFF;
}

.booking-card .text-primary {
    color: #FFFFFF !important;
}

.booking-card .form-control,
.booking-card .form-select {
    background-color: #FFFFFF;
    color: var(--dark);
}

.booking-card .form-control::placeholder,
.booking-card textarea::placeholder {
    color: rgba(20, 20, 31, 0.6);
}


/*** 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: "Font Awesome 5 Free";
    font-weight: 900;
    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;
}

/* Timeline vertical line and badge alignment fix */
.timeline {
    position: relative;
    margin-left: 30px;
    padding-left: 20px;
    border-left: 2px solid #a49e31;
    transition: border-color 0.3s;
}
.timeline.scrolled-up { border-left-color: #e5bf61 !important; }
.timeline.scrolled-down { border-left-color: #a49e31 !important; }
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    align-items: flex-start;
}
.timeline-badge {
    position: absolute;
    left: -38px;
    top: 0;
    background: #b78640;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 2;
}
.timeline-badge.scrolled-up { background: #ad6235 !important; }
.timeline-badge.scrolled-down { background: #b78640 !important; }
@media (max-width: 767.98px) {
    .timeline {
        margin-left: 18px;
        padding-left: 12px;
    }
    .timeline-badge {
        left: -22px;
        width: 28px;
        height: 28px;
        font-size: 15px;
        line-height: 28px;
    }
}
/* End timeline badge global style */
