html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0; 
    background-color: rgb(248,236,231);
    padding-bottom: 50px;
}
.logo{
    padding-left: 0;
    margin: 0;
}

/* Target the elements you want to scroll to */
#services, #founders, #contact {
    scroll-margin-top: 7rem; /* Adjust this value to match your navbar height + desired offset */
  }

#pictureSlide{
    scroll-margin-top: 7rem  !important;
}
#testimonials{
    scroll-margin-top: 5rem;
}


.navBar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 2rem;
    height: 6rem;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: white;   
}

.logo img{
    padding: 0;
    margin: 0;
    height: 100px;
}


.navUL {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}


.navListItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 8rem; 
    color: #000000; 
    position: relative; 
    transition: color 0.3s ease;
    font-weight: lighter;
    text-align: center;
}


.navULtext {
    font-size: 1rem;
    text-align: center;
}
.navULtext a{
    text-decoration: none;
    color: #000000; 
}


.navULredbar {
    background-color: rgb(136, 24, 24); 
    position: absolute;
    bottom: -5px; 
    left: 50%; 
    transform: translateX(-50%);
    height: 3px;
    width: 0; 
    transition: width 0.3s ease; 
}

.navListItem:hover {
    color: rgb(0, 0, 0);
    font-weight: normal;
}

.navListItem:hover .navULredbar {
    width: 3rem; 
}
.navListItem:hover .navULtext a {
    color: black; 
    cursor: pointer;
}
.navBar {
    transition: background-color 0.3s ease-in-out;
}

.navBar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navListItem.dropdown {
    position: relative;
  }
  
  /* Dropdown menu styling */
  .dropdown-menu {
    display: none; /* Hide by default */
    position: absolute;
    top: 120%; /* Position directly below the parent */
    left: 0;
    background-color: white;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    z-index: 1000;

    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  /* Dropdown menu items */
  .dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  /* Change background on hover */
  .dropdown-menu li a:hover {
    background-color: #f2f2f2;
  }

  .navListItem.dropdown:hover .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  /* Show the dropdown when hovering over the parent */
  .navListItem.dropdown:hover .dropdown-menu {
    display: block;
  }

  @media (max-width: 768px) {
    .navBar {
      flex-direction: column;
      height: auto;
      padding: 10px;
      position: static;
    }
    .navUL {
      flex-direction: column;
      gap: 10px;
    }
    .container{
        transform: translateY(2.5rem);
        text-align: center;
    }
}
.remainingContent{
    padding-top: 6rem;
}
.introText {
    padding: 1rem 3rem;
    letter-spacing: 1px;
    text-align: justify;
    font-size: 1.2rem;
}

.bulletPoint {
    height: 20px;
    padding-right: 10px;
    margin-top: 1px;
    vertical-align: middle; /* Aligns the icon vertically with the text */
}

.lateralServicesList ul {
    list-style-type: none;
    margin: 0; /* Remove default ul margin */
    padding: 0; /* Remove default ul padding */
}

.lateralServicesList li {
    font-size: 1rem;
    margin: 5px;
    color: rgb(42, 72, 100);
    letter-spacing: 1px;
    padding-left: 3rem;
    display: flex; /* Use flexbox for better alignment of image and text in list item */
    align-items: center; /* Vertically align items in the list */
}

.lateralServicesList p {
    padding: 0.5rem 3rem;
    letter-spacing: 1px;
    text-align: justify;
}

.lateralServicesGridSection p {
    padding: 1rem 3rem;
    letter-spacing: 1px;
    text-align: justify;
}

.listAndImage {
    display: flex; /* Enables flexbox layout for list and images */
    flex-wrap: wrap; /* Allows items to wrap to the next line on smaller screens */
    gap: 20px; /* Adds space between the list and image columns */
    padding: 1rem 3rem; /* Add some padding to this whole section */
    align-items: center; /* Aligns items to the start of the cross-axis */
}

.lateralServicesList {
    flex: 1; /* Allows the list to take up available space */
    min-width: 300px; /* Ensures the list doesn't get too narrow */
}

.lateralServicesImages {
    flex: 1; /* Allows the image container to take up available space */
    display: grid; /* Use CSS Grid for the images within this container */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid for images */
    gap: 15px; /* Space between images */
    justify-content: center; /* Center images if there's extra space */
    align-items: start; /* Align images to the start of the grid cell */
    min-width: 250px; /* Ensures the image container doesn't get too narrow */
}

.service-collage-image {
    width: 100%; /* Make images fill their grid cell */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    border-radius: 8px; /* Slightly rounded corners for a modern look */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    object-fit: cover; /* Ensures image covers the area without distortion */
    aspect-ratio: 16/9; /* Or 4/3, 1/1, etc., depending on desired image shape */
}

/* Optional: Media query for smaller screens if images stack awkwardly */
@media (max-width: 768px) {
    .listAndImage {
        flex-direction: column; /* Stack list and images vertically on small screens */
        align-items: center; /* Center items when stacked */
    }

    .lateralServicesList,
    .lateralServicesImages {
        min-width: unset; /* Remove min-width constraints for better stacking */
        width: 100%; /* Make them full width */
    }

    .lateralServicesList li {
        padding-left: 1rem; /* Adjust padding for smaller screens */
    }

    .lateralServicesImages {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Adjust grid for smaller image sizes */
        align-self: center;
        margin:auto
    }

}

/* Grid for fulfilled mandates (existing, but adding for completeness) */
.lateralServicesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust columns for responsiveness */
    gap: 10px;
    padding: 1rem 3rem;
}

.gridItem {
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    text-align: center;
}
.title{
    display: flex;
    background-color: rgb(173,42,36);
    height: 400px;
}
.titleText{
    width: 50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.titleText #titleBigger{
    margin: 0 2rem;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}
.titleText #titleSmaller{
    color: white;
    font-size: 1.2rem;
    font-weight: normal;
    margin-left: 2rem
}

.titleImage{
    width: 50%;
}
.titleImage img{
    height: 400px;
    padding: 0;
    margin: 0;
    width: 100%;
}
.lateralEnquiry{
    background-color: white;
    height: 175px;
    border-radius: 20px;
    z-index: 1;
    transform: translateY(-2rem);
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.lateralEnquiryText{
    font-size: 1.1rem;
    padding: 1rem;
    letter-spacing: 1px;
    width: 50%;
    text-align: justify;
}
.lateralEnquiryButton {
    margin: 20px 0;
    font-size: 1rem;
    border-radius: 50px;
    outline: none;
    background-color:rgba(173,42,36,255);
    border: 1px solid var(--button-border);
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    color: white;
    font-weight: lighter;
    height: 50px;
    cursor: pointer;
    width: 120px;
    transition: all var(--transition-speed);
    transform:translateY(-10px);
    transition: transform 0.2s ease-in-out, background-color 0.3s;
}

/* Style the link inside the button */
.lateralEnquiryButton a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 3rem;  /* vertically center the text */
    color: white;
    text-decoration: none;
}
.lateralEnquiryText a{
    text-decoration-style: none;
}
.lateralEnquiry button:hover{
    background-color: rgb(138, 34, 34);
    color: white;
    border: 1px solid var(--button-hover-border);
    transform: translateY(-15px);
}

.lateralServicesGrid{
    display: grid;
    grid-template-columns: repeat(2,  1fr); /* Adjusted minmax for better balance */
    gap: 10px;
    padding: 1rem 3rem;
    margin: 20px;
    width: 60%;
    
}
.gridItem{
    text-align: left;
    color: rgb(42,72,100);
    letter-spacing: 1px;
    font-weight: 400;
    height: 30px;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    text-align: center;
}
 
.listAndImage{
    display: flex;
}

@media (max-width: 768px){
    .titleImage{
        width: 0%;
    }
    .titleText{
        width: 95%;
    }
    .lateralEnquiry{
        height: 25rem;
        text-align: center;
        flex-direction: column;
    }
    .lateralEnquiryButton{
        width: 10rem;
    }
    .lateralServicesImage img{
       visibility:collapse;
    }
   
    .lateralServicesList li{
        font-size: 0.9rem;
        height: 70px; 
        width: 12rem;
    }
    
    .lateralServicesGridSection p {
        padding: 1rem 1.5rem; /* Adjust padding for text above the grid */
    }

    .lateralServicesGrid {
        /* On tablets, let's keep it two columns but make them slightly smaller */
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 1.5rem; /* Adjust grid padding for smaller screens */
    }
    
}

.lateralServicesImage img{
    height: 500px;
}

