/* =========================================================
   BASA AFRICA — RESPONSIVE STYLES
   File: assets/css/responsive.css
   ========================================================= */


/* =========================================================
   1. GLOBAL RESPONSIVE PROTECTION
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
svg,
canvas {
    max-width: 100%;
}

.container,
.container-fluid,
.row,
[class*="col-"] {
    min-width: 0;
}

section,
header,
footer,
nav,
main {
    width: 100%;
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span {
    overflow-wrap: break-word;
}


/* =========================================================
   2. EXTRA-LARGE DESKTOP
   ========================================================= */

@media (min-width: 1400px) {

    .container {
        max-width: 1320px;
    }

}


/* =========================================================
   3. LAPTOPS AND SMALL DESKTOPS
   ========================================================= */

@media (max-width: 1199.98px) {

    .v3-navbar .nav-link {
        padding-left: 10px !important;
        padding-right: 10px !important;

        font-size: 14px;
    }

    .v3-nav-btn {
        padding-left: 18px;
        padding-right: 18px;
    }

    .v3-hero h1 {
        font-size: clamp(3rem, 6vw, 4.6rem);
    }

    .v3-about-image img,
    .leader-image img {
        height: 540px;
    }

    .v3-project-card {
        height: 410px;
    }

}


/* =========================================================
   4. TABLETS AND BELOW
   ========================================================= */

@media (max-width: 991.98px) {

    body {
        font-size: 15px;
    }


    /* -----------------------------------------------------
       NAVBAR
       ----------------------------------------------------- */

    .v3-topbar {
        display: none;
    }

    .v3-navbar {
        padding: 10px 0;
    }

    .v3-navbar .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .v3-brand {
        max-width: calc(100% - 65px);
    }

    .v3-brand img {
        width: auto;
        max-width: 185px;
        max-height: 46px;
    }

    .v3-navbar .navbar-toggler {
        flex: 0 0 auto;

        width: 46px;
        height: 46px;
    }

    .v3-navbar .navbar-collapse {
        width: 100%;

        margin-top: 14px;
        padding: 16px;

        overflow-x: hidden;
        overflow-y: auto;

        max-height: calc(100vh - 95px);
    }

    .v3-navbar .navbar-nav {
        width: 100%;
        align-items: stretch;
    }

    .v3-navbar .nav-item {
        width: 100%;
        margin: 0 !important;
    }

    .v3-navbar .nav-link {
        width: 100%;

        padding: 12px 14px !important;

        font-size: 15px;
    }

    .v3-navbar .dropdown-menu {
        position: static !important;

        width: 100%;
        min-width: 0;

        margin-top: 6px;

        transform: none !important;
    }

    .v3-nav-btn {
        width: 100%;

        margin-top: 10px;

        text-align: center;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .v3-hero {
        min-height: auto;

        padding: 95px 0 80px;
    }

    .v3-hero .min-vh-100 {
        min-height: auto !important;
    }

    .v3-hero h1 {
        width: 100%;
        max-width: 100%;

        font-size: clamp(2.8rem, 7vw, 4rem);
        line-height: 1.03;
    }

    .v3-hero p {
        max-width: 100%;

        font-size: 18px;
    }

    .v3-actions {
        width: 100%;
    }


    /* -----------------------------------------------------
       SECTION SPACING
       ----------------------------------------------------- */

    .v3-about,
    .v3-services,
    .v3-projects,
    .v3-map,
    .v3-video,
    .v3-testimonials,
    .v3-partners,
    .v3-news,
    .v3-milestones,
    .v3-why-us,
    .v3-values,
    .v3-timeline,
    .v3-leadership,
    .v3-divisions,
    .v3-impact,
    .public-gallery-section,
    .v3-featured-gallery,
    .public-careers-section,
    .job-details-section,
    .job-application-section,
    .public-downloads-section,
    .contact-section,
    .services-page-section,
    .service-details-section,
    .projects-page-section,
    .project-details-section,
    .blog-page-section,
    .blog-details-section,
    .quotation-section,
    .commodities-section {
        padding-top: 85px;
        padding-bottom: 85px;
    }


    /* -----------------------------------------------------
       ABOUT
       ----------------------------------------------------- */

    .v3-about .row {
        row-gap: 45px;
    }

    .v3-about-image {
        width: 100%;
        margin-bottom: 0;
    }

    .v3-about-image img {
        width: 100%;
        height: 480px;

        object-fit: cover;
    }

    .v3-about-card {
        right: 18px;
        bottom: 18px;

        width: 205px;

        padding: 24px;
    }

    .v3-about-card h3 {
        font-size: 46px;
    }

    .v3-about h2,
    .v2-title h2,
    .section-title h2 {
        font-size: clamp(2.1rem, 5vw, 3rem);
    }


    /* -----------------------------------------------------
       VIDEO
       ----------------------------------------------------- */

    .v3-video-box {
        flex-direction: column;
        align-items: flex-start;

        min-height: 480px;

        padding: 38px;
    }

    .v3-video-box h2 {
        font-size: 36px;
    }

    .v3-play {
        width: 74px;
        height: 74px;

        font-size: 25px;
    }


    /* -----------------------------------------------------
       PROJECTS
       ----------------------------------------------------- */

    .v3-project-card {
        height: 390px;
    }


    /* -----------------------------------------------------
       TIMELINE
       ----------------------------------------------------- */

    .timeline::before {
        left: 45px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;

        margin-left: 0;

        padding-left: 110px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
        right: auto;
    }


    /* -----------------------------------------------------
       MAP
       ----------------------------------------------------- */

    .v3-map-box,
    .map-wrapper {
        min-height: 500px;
    }

    .pin-label {
        font-size: 10px;
    }


    /* -----------------------------------------------------
       STICKY JOB SUMMARY
       ----------------------------------------------------- */

    .job-summary-card {
        position: static;
    }


    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .v3-cta {
        padding: 80px 0;
    }

    .v3-cta .text-lg-end {
        margin-top: 25px;

        text-align: left !important;
    }

}


/* =========================================================
   5. MOBILE DEVICES
   ========================================================= */

@media (max-width: 767.98px) {

    body {
        font-size: 15px;
    }

    .container {
        width: 100%;

        padding-left: 18px;
        padding-right: 18px;
    }


    /* -----------------------------------------------------
       NAVBAR
       ----------------------------------------------------- */

    .v3-navbar .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .v3-brand {
        max-width: calc(100% - 62px);
    }

    .v3-brand img {
        max-width: 165px;
        max-height: 43px;
    }

    .v3-navbar .navbar-toggler {
        width: 43px;
        height: 43px;
    }

    .v3-navbar .navbar-collapse {
        padding: 13px;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .v3-hero {
        min-height: auto;

        padding: 65px 0 60px;

        background-position: center;
    }

    .v3-hero .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .v3-hero .row {
        margin-left: 0;
        margin-right: 0;
    }

    .v3-hero [class*="col-"] {
        width: 100%;
        max-width: 100%;

        padding-left: 0;
        padding-right: 0;
    }

    .v3-badge {
        width: auto;
        max-width: 100%;

        margin-bottom: 22px;
        padding: 9px 13px;

        font-size: 11px;
        line-height: 1.4;

        white-space: normal;
    }

    .v3-hero h1 {
        width: 100%;
        max-width: 100%;

        margin-bottom: 20px;

        font-size: clamp(2.35rem, 10vw, 3.15rem);
        line-height: 1.04;

        letter-spacing: -1px;
    }

    .v3-hero p {
        width: 100%;
        max-width: 100%;

        margin-bottom: 28px;

        font-size: 16px;
        line-height: 1.7;
    }

    .v3-actions {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
    }

    .v3-actions a,
    .v3-btn-primary,
    .v3-btn-outline {
        width: 100%;
        max-width: 100%;

        text-align: center;
    }


    /* -----------------------------------------------------
       MARQUEE
       ----------------------------------------------------- */

    .v3-marquee {
        padding: 19px 0;
    }

    .v3-marquee-track {
        gap: 32px;

        animation-duration: 22s;
    }

    .v3-marquee-track span {
        font-size: 12px;
    }


    /* -----------------------------------------------------
       ABOUT
       ----------------------------------------------------- */

    .v3-about {
        padding: 70px 0;
    }

    .v3-about .row {
        row-gap: 38px;
    }

    .v3-about-image {
        width: 100%;

        margin: 0;
        padding: 0;
    }

    .v3-about-image img {
        width: 100%;
        height: 320px;

        object-fit: cover;

        border-radius: 22px;
    }

    .v3-about-card {
        right: 12px;
        bottom: 12px;

        width: 185px;
        max-width: calc(100% - 24px);

        padding: 20px;

        border-radius: 22px;
    }

    .v3-about-card h3 {
        margin-bottom: 6px;

        font-size: 42px;
    }

    .v3-about-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .v3-about h2 {
        font-size: clamp(2rem, 9vw, 2.7rem);
    }

    .v3-about p {
        font-size: 16px;
    }

    .v3-stat-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }


    /* -----------------------------------------------------
       SECTION TITLES
       ----------------------------------------------------- */

    .section-title,
    .v2-title {
        margin-bottom: 40px;
    }

    .section-title h2,
    .v2-title h2 {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .section-title p,
    .v2-title p {
        font-size: 16px;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       SECTION SPACING
       ----------------------------------------------------- */

    .v3-services,
    .v3-projects,
    .v3-map,
    .v3-video,
    .v3-testimonials,
    .v3-partners,
    .v3-news,
    .v3-milestones,
    .v3-why-us,
    .v3-values,
    .v3-timeline,
    .v3-leadership,
    .v3-divisions,
    .v3-impact,
    .public-gallery-section,
    .v3-featured-gallery,
    .public-careers-section,
    .job-details-section,
    .job-application-section,
    .public-downloads-section,
    .contact-section,
    .services-page-section,
    .service-details-section,
    .projects-page-section,
    .project-details-section,
    .blog-page-section,
    .blog-details-section,
    .quotation-section,
    .commodities-section {
        padding-top: 75px;
        padding-bottom: 75px;
    }


    /* -----------------------------------------------------
       CARDS
       ----------------------------------------------------- */

    .v3-service-card,
    .v3-testimonial-card,
    .career-card,
    .public-download-card,
    .job-details-card,
    .job-summary-card,
    .value-card,
    .milestone-card,
    .contact-info-card,
    .commodity-card {
        padding: 24px;
    }

    .v3-project-card {
        height: 360px;
    }

    .v3-project-content {
        padding: 26px;
    }


    /* -----------------------------------------------------
       VIDEO
       ----------------------------------------------------- */

    .v3-video-box {
        min-height: 430px;

        padding: 28px;

        border-radius: 26px;
    }

    .v3-video-box h2 {
        font-size: 30px;
    }

    .v3-play {
        width: 66px;
        height: 66px;

        font-size: 22px;
    }


    /* -----------------------------------------------------
       PAGE HERO
       ----------------------------------------------------- */

    .v3-page-hero {
        padding: 78px 0;
    }

    .v3-page-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3rem);
    }

    .v3-page-hero p {
        font-size: 16px;
    }


    /* -----------------------------------------------------
       LEADERSHIP
       ----------------------------------------------------- */

    .leader-image img {
        height: 360px;

        border-radius: 24px;
    }


    /* -----------------------------------------------------
       WHY CHOOSE US
       ----------------------------------------------------- */

    .why-item {
        gap: 15px;
    }

    .why-icon {
        width: 58px;
        height: 58px;

        border-radius: 18px;

        font-size: 22px;
    }

    .experience-card {
        left: 12px;
        bottom: 12px;

        width: 190px;

        padding: 22px;
    }

    .experience-card h1 {
        font-size: 42px;
    }


    /* -----------------------------------------------------
       TIMELINE
       ----------------------------------------------------- */

    .timeline::before {
        left: 32px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 82px;
    }

    .timeline-year {
        width: 64px;
        height: 64px;

        font-size: 13px;
    }

    .timeline-content {
        padding: 24px;
    }


    /* -----------------------------------------------------
       DIVISIONS
       ----------------------------------------------------- */

    .division-box {
        height: 360px;
    }

    .division-overlay {
        padding: 26px;
    }

    .division-overlay h4 {
        font-size: 23px;
    }


    /* -----------------------------------------------------
       MAP
       ----------------------------------------------------- */

    .v3-map-box,
    .map-wrapper {
        min-height: 430px;

        border-radius: 24px;
    }

    .map-route {
        display: none;
    }

    .pin-label {
        padding: 5px 8px;

        font-size: 9px;
    }


    /* -----------------------------------------------------
       GALLERY
       ----------------------------------------------------- */

    .gallery-media-box,
    .homepage-gallery-media {
        height: 230px;
    }

    .gallery-filter-bar,
    .downloads-filter-buttons {
        justify-content: flex-start;
        flex-wrap: nowrap;

        width: 100%;

        overflow-x: auto;

        padding-bottom: 10px;

        scrollbar-width: thin;
    }

    .gallery-filter-btn,
    .downloads-filter-btn {
        flex: 0 0 auto;

        white-space: nowrap;
    }

    .gallery-lightbox {
        padding: 14px;
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
    }


    /* -----------------------------------------------------
       CAREERS AND JOB DETAILS
       ----------------------------------------------------- */

    .career-card-top,
    .career-card-bottom,
    .download-card-top,
    .job-details-heading,
    .job-summary-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .job-summary-item strong {
        text-align: left;
    }


    /* -----------------------------------------------------
       DETAILS IMAGES
       ----------------------------------------------------- */

    .service-details-image img,
    .project-details-image img {
        height: 340px;

        border-radius: 24px;
    }

    .project-details-meta {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       BLOG
       ----------------------------------------------------- */

    .blog-card-image {
        height: 230px;
    }

    .blog-details-image img {
        border-radius: 24px;
    }


    /* -----------------------------------------------------
       CONTACT
       ----------------------------------------------------- */

    .map-embed-wrapper iframe {
        min-height: 360px;
    }


    /* -----------------------------------------------------
       CTA
       ----------------------------------------------------- */

    .v3-cta {
        padding: 70px 0;
    }

    .v3-cta h2 {
        font-size: 32px;
    }

    .v3-cta .text-lg-end {
        margin-top: 24px;

        text-align: center !important;
    }

    .v3-cta .btn {
        width: 100%;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

    .site-footer {
        padding-top: 70px;
    }

    .footer-newsletter {
        padding: 22px;
    }

    .footer-newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter-form .form-control,
    .footer-newsletter-form .v3-btn-primary {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }


    /* -----------------------------------------------------
       FLOATING BUTTONS
       ----------------------------------------------------- */

    .floating-contact-widget {
        right: 14px;
        bottom: 16px;
    }

    .back-to-top {
        left: 14px;
        bottom: 16px;
    }

    .floating-contact-link,
    .floating-contact-toggle,
    .back-to-top {
        width: 48px;
        height: 48px;

        font-size: 18px;
    }

}


/* =========================================================
   6. SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 480px) {

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }


    /* NAVBAR */

    .v3-brand img {
        max-width: 150px;
    }


    /* HERO */

    .v3-hero {
        padding: 55px 0 50px;
    }

    .v3-hero h1 {
        font-size: 2.25rem;
    }

    .v3-hero p {
        font-size: 15px;
    }


    /* ABOUT */

    .v3-about-image img {
        height: 270px;
    }

    .v3-about-card {
        right: 10px;
        bottom: 10px;

        width: 170px;

        padding: 18px;
    }

    .v3-about-card h3 {
        font-size: 38px;
    }

    .v3-about-card p {
        font-size: 12px;
    }


    /* VIDEO */

    .v3-video-box {
        min-height: 390px;

        padding: 24px;
    }

    .v3-video-box h2 {
        font-size: 27px;
    }


    /* PROJECTS */

    .v3-project-card {
        height: 330px;
    }

    .v3-project-content {
        padding: 22px;
    }


    /* DETAILS IMAGES */

    .service-details-image img,
    .project-details-image img {
        height: 280px;
    }


    /* MAP */

    .v3-map-box,
    .map-wrapper {
        min-height: 380px;
    }

}


/* =========================================================
   7. VERY SMALL MOBILE DEVICES
   ========================================================= */

@media (max-width: 360px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .v3-brand img {
        max-width: 135px;
    }

    .v3-navbar .navbar-toggler {
        width: 41px;
        height: 41px;
    }

    .v3-hero h1 {
        font-size: 2rem;
    }

    .v3-about-image img {
        height: 245px;
    }

    .v3-about-card {
        width: 158px;

        padding: 16px;
    }

    .v3-about-card h3 {
        font-size: 34px;
    }

    .v3-stat-box h4 {
        font-size: 29px;
    }

}


/* =========================================================
   8. LANDSCAPE PHONE
   ========================================================= */

@media (
    max-width: 915px
) and (
    max-height: 500px
) and (
    orientation: landscape
) {

    .v3-navbar .navbar-collapse {
        max-height: calc(100vh - 70px);
    }

    .v3-hero {
        padding: 55px 0;
    }

    .v3-hero h1 {
        font-size: 2.7rem;
    }

    .v3-hero p {
        font-size: 15px;
    }

}


/* =========================================================
   9. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .v3-marquee-track {
        animation: none;
    }

    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }

}