/* Addtional styles */

:root {
    --bs-primary: #000 !important; /* Replace with your desired primary color */
    --bs-primary-rgb: rgb(255, 255, 255); /* Replace with your desired primary color */
    --bs-secondary: #000000 !important; /* Replace with your desired secondary color */
    --bs-dark: #000000 !important;
    --bs-color: #000000 !important;
    --bs-font-lato: 'Lato', Arial, sans-serif !important;
    --bs-font-montserrat: 'Montserrat', Arial, sans-serif !important;
    --bs-btn-font-family: var(--bs-font-lato); /* Define button font here */
    --bs-info-rgb: rgba(13,202,240, 1);
}

/* BUTTON STYLES */
.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-color: var(--bs-info-rgb);
    --bs-btn-hover-color: grey;
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: rgba(76, 76, 78, 0.9); /* Fix here */
    --bs-btn-hover-border-color: rgba(255, 255, 255, 0.85); /* Fix here */
    --bs-btn-active-bg: rgba(225, 225, 225, 0.8); /* Fix here */
    --bs-btn-active-border-color: rgba(255, 255, 255, 0.75); /* Fix here */
}

.text-info {
    color: var(--bs-info-rgb) !important;
}

.btn {
    font-family: var(--bs-font-lato), sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    outline: none;
}

/* END BUTTON STYLES */

#navbar-logo-img {

}

.carousel-height {
    height: 350px; /* Fix the height to 350px */
    max-height: 350px; /* Cap the height */
    display: flex;
    justify-content: center; /* Horizontally center content */
    align-items: center; /* Vertically center content */
    overflow: hidden; /* Ensure overflow doesn’t break the layout */
}

.carousel-height img {
    max-height: 100%; /* Ensure image doesn’t exceed container height */
    width: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Control how image fills the container */
}
#heroCarousel .carousel-inner img {
    height: 100%;            /* Make sure the images fill the container */
    width: 100%;             /* Extend the image to ensure it fills the div */
    object-fit: cover;       /* Ensure proper aspect ratio */
}
.d-flex.align-items-center.carousel-height {
    flex: 0 0 calc(50% ); /* Each should take exactly 50% of the available space */
    height: calc(50%);
}

@media (max-width: 767.98px) {
    .carousel-height {
        height: auto; /* Remove height restriction for mobile */
        width: 100%;
    }
    .carousel-height img {
        max-height: 50%; /* Ensure image doesn’t exceed container height */
        width: 50%; /* Maintain aspect ratio */
        object-fit: contain; /* Control how image fills the container */
    }
}

.bg-primary {
    --bs-bg-opacity: 1 !important;
    background-color: var(--bs-primary-rgb) !important;
}

.bg-logo-mark {
    /* background: url('../../../site_images/logo-overlay-white.png') no-repeat; */
    background-size: 250px;
    background-position: calc(100% - 100px) top;
}

.product-img {
    border-radius: 0.5rem;
    border: 1px solid rgb(228, 228, 228)
}

.cta-position {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.image-card {
    position: relative;
    display: flex;
}

.image-card .overlay {
    background-image: linear-gradient(to right, rgba(0,0,0,0.801), rgba(255, 255, 255, 0.61));
    display: flex;
    align-items: end;
    width: 100%;
    height: 20rem;
}

.square-3r {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.square-2r {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-footer {
    background: var(--bs-dark);
    background-size: 300px;
    background-position: calc(100% - 100px) bottom;
}

.text-muted {
    color: rgb(124, 124, 124) !important;
}

.font-thin {
    font-weight: 100;
}

.nav-link {
    color: var(--bs-dark);
}

.clean {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
}

.btn-clean {
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0.2rem;
}

.btn.disabled, .btn:disabled {
    opacity: 0.75;
    background-color: var(--bs-primary);
}

/* Lato fonts */

@font-face {
    font-family: 'Lato';
    src: url('../webfonts/Lato-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../webfonts/Lato-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../webfonts/Lato-Light.ttf');
    font-weight: 100;
    font-style: normal;
}

/* Montserrat fonts */

@font-face {
    font-family: 'Montserrat';
    src: url('../webfonts/Montserrat-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../webfonts/Montserrat-Bold.ttf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../webfonts/Montserrat-Light.ttf');
    font-weight: 100;
    font-style: normal;
}

/* root styles */

* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--bs-font-lato), serif;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.normal {
    font-size: 1rem !important;
}

.small {
    font-size: 0.875rem !important;
}

.smaller {
    font-size: 0.75rem !important;
}

.large {
    font-size: 1.25rem !important;
}

.larger {
    font-size: 1.5rem !important;
}


@media (max-width: 768px) {
    /* Reset the megamenu content */

    .megamenu {
        transform: translateX(0%) !important;

    }

    .dropdown-menu.megamenu {
        max-height: 400px; /* Adjust the height as needed */
        overflow-y: auto;
        overflow-x: hidden; /* Prevent horizontal scrolling */
        scrollbar-width: thin; /* Optional: style scrollbar for supported browsers */
    }

    .megamenu-content {
        position: relative; /* Allow normal flow */
        display: block; /* Block layout */
        width: 100%; !important; /* Full width for container */
        height: auto; /* Allow container height to grow naturally */
        overflow: visible; /* Ensure all content is visible */
        column-count: 1 !important; /* Override columns to a single column */
        column-gap: 0 !important; /* Remove spacing between imaginary columns */
    }

    /* Each block should stack in a single column */
    .megamenu-content .block {
        position: relative; /* Reset absolute or float positioning */
        float: none; /* Ensure blocks don't float side-by-side */
        width: 100% !important; /* Full width for stacking */
        margin: 0 0 1rem 0; /* Add spacing below stacked blocks */
        box-sizing: border-box; /* Standardize box-model behavior */
    }

    .cta-position {
        position: relative !important;
    }

    .scrolling-wrapper .card {
        flex: 0 0 100% !important; /* Full width for one item */
        max-width: 100%; /* Ensure it spans the full width for mobile */
    }

    .btn-prev,
    .btn-next {
        top: 50%; /* Centered vertically */
        transform: translateY(-50%); /* Align correctly */
    }

    /* Adjust button positions to sit just outside the visible product */
    .btn-prev {
        left: -20px; /* Adjust as needed */
    }
    .btn-next {
        right: -20px; /* Adjust as needed */
    }
}

/* General Mega Menu Styles */
/* Mega Menu Wrapper */
.megamenu {
    width: 80vw; /* Use 80% of the viewport width */
    max-width: 1200px; /* Limit maximum width */
    padding: 0.5rem; /* Add less padding around the megamenu */
    border: 1px solid #ddd; /* Optional: Add border */
    background-color: #fff; /* Add background */
    overflow: hidden; /* Clear floats */
    box-sizing: border-box; /* Include padding in width/height */
    position: absolute;

    /* Prevent the megamenu from going off-screen */
    left: 10% !important; /* Start at the center of the parent */
    transform: translateX(-60%); /* Center it horizontally (no overflow) */
    /* Ensure it won't overflow to the right or left */
    right: 10px; /* Prevent right overflow */

}


/* Free-Floating Container */
.megamenu-content {
    column-count: 3; /* Number of columns */
    column-gap: 1rem; /* Spacing between columns */
}

.megamenu-content .block {
    display: inline-block; /* Allow wrapping inside columns */
    break-inside: avoid; /* Prevent blocks from breaking across columns */
    width: 100%; /* Full width of the column */
    margin-bottom: 1rem; /* Spacing between blocks */
    box-sizing: border-box;
}

/* Clear margins for the last block in the row */
.megamenu-content .block:nth-child(3n) {
    margin-right: 0;
}

/* Clear floats for the parent container */
.megamenu-content:after {
    content: "";
    display: table;
    clear: both;
}

/* Headings Inside Each Block */
.megamenu-content .block h6 {
    font-size: 1.5rem; /* Smaller font size for block headings */
    font-weight: bold;
    color: rgba(13, 202, 240, 0.8) !important;
    margin-bottom: 0.25rem; /* Reduced spacing below headings */
}
.megamenu-content .block h6 a:hover {
    font-size: 1.5rem; /* Smaller font size for block headings */
    font-weight: bolder;
    color: rgba(255,140,196, 0.8) !important;
    margin-bottom: 0.25rem; /* Reduced spacing below headings */
}

/* List Styles */

.megamenu-content .block ul {
    list-style: none; /* Remove bullets */
    margin: 0; /* Reset all margins */
    padding: 0; /* Reset all padding */
}

/* Individual List Items */
.megamenu-content .block ul li {
    margin-bottom: 0.1rem; /* Reduce spacing between list items */
    line-height: 1.5; /* Adjust line height for compactness */
}

/* Links Inside List Items */
.megamenu-content .block ul li a {
    text-decoration: none;
    font-size: 1rem; /* Smaller font size for links */
    color: #fff;
    padding: 0.2rem 0; /* Reduce padding for smaller clickable area */
    display: inline-block; /* Prevent padding from making the link too tall */
    transition: color 0.3s ease; /* Keep hover smooth */
}

/* Hover Behavior for Links */
.megamenu-content .block ul li a:hover {
    color: rgba(13, 202, 240, 0.8) !important;; /* Match existing hover behavior */
    font-weight: bold;
}

.drop-menu-bg {
    background-color: var(--bs-secondary);
}

.drop-menu-bg .nav-link {
    color: #fff;
}

body .drop-menu-bg .nav-link > h6 {
    color: rgba(13, 202, 240, 0.8) !important;
}

.aXo-pink {
    color: rgba(255,140,196, 1) !important;
}


/* PRODUCT MODAL STYLES */

 #notification-modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100vh;
     background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
     display: flex;
     z-index: 1050; /* Ensure it's on top of the page */
 }

#notification-message {
    padding: 20px;
    border-radius: 8px;
    min-width: 300px;
    max-width: 500px;
    font-size: 1.2rem;
}

#notification-modal .alert-success {
    background-color: rgba(41, 41, 41, 0.61);
    color: white;
}

#notification-modal .alert-danger {
    background-color: #dc3545;
    color: white;
}


/* INDEX PAGE STYLES */

#sectors-we-specialize-in {
    position: relative;
    min-height: 400px;

}
#sectors-we-specialize-in::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 68%;
    background-color: #f7f6f6;
    z-index: -1; /* Keep it behind the content */
}

.hero-section-overlay {
    width: 50%;
    background-color: var(--bs-primary);
    height: 350px;
    opacity: 0.85;
}


.welcomeSection {
    /*background:  url('../../../site_images/') no-repeat;*/
    background-size: 300px;
    background-position: calc(100% - 100px) bottom;
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 50px 0 50px 0;
}

.sustainableSection {
    position: relative; /* Stays in place relative to other content */
    padding: 75px 0;
    background: url('../../../site_images/sustainbg.png') no-repeat center center; /* Adjust for your image path */
    background-size: cover;
    background-attachment: fixed; /* This creates the scrolling effect */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Avoid tiling the image */
    color: #fff; /* Text color to ensure readability */
    z-index: 1; /* Ensure the section appears above other elements */
}

.sustainableSection:after {
    content: ""; /* Creates an overlay effect */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay */
    z-index: -1; /* Place the overlay behind content */
    pointer-events: none; /* Ensure the overlay doesn’t interact with user actions */
}

 .enlarged-image {
     width: auto !important; /* Remove width restriction */
     max-width: 100% !important; /* Prevent the image from overflowing */
     height: auto; /* Maintain aspect ratio */
     transform: scale(2.5); /* Enlarge the image by 1.5 times */
     transition: transform 0.3s ease; /* Smooth animation for enlargement */
     cursor: zoom-out; /* Changes cursor to indicate reducing size */
 }
