/* Base Styles */
@import url(fontawesome.css);
@import url('https://fonts.googleapis.com/css2?family=Vast+Shadow&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vast+Shadow&display=swap');

@font-face {
    font-family: 'Century';
    src: url("../fonts/century.TTF") format('truetype'),
         url('fonts/centurygothic.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
body {
  scroll-snap-type: y mandatory; /* Enable vertical snapping on the body */
  overflow-y: scroll; /* Ensure scrolling is enabled */
}
body {
  	font-family: 'Inter', sans-serif;
  	padding-top: calc(108px + 25px); /* Default padding for larger screens */
}

/* Media query for screens with a max width of 992px */
@media (max-width: 992px) {
  	body {
    	padding-top: calc(60px + 0px); /* Adjusted padding for smaller screens */
  	}
}


h1 {
  font-weight: 700; /* Example using a specific weight */
}

.content {
  padding-top: 108px;
}

@media (max-width: 992px) {
  .content {
    padding-top: 60px;
  }
}



    

body {
  /* You might have other body styles here */
  font-size: 1rem; /* Inherit base font size */
}

.century-48px {
  font-family: Century, serif;
  font-size: 6rem; /* (Approx. 90px / 15px) - Adjusted */
  color: #3c4356;
}

.century-36px {
  font-family: Century, cursive, serif;
  font-size: 3rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
  font-style: italic;
  font-weight: bold;
}
.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 2.4rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}

.inter-13px {
  font-family: Inter, serif;
  font-size: 1.0rem; /* (Approx. 18px / 15px) - Adjusted */
  color: #3c4356;
}

.inter-13px-white {
  font-family: Inter, serif;
  font-size: 1.2rem; /* (Approx. 18px / 15px) - Adjusted */
  color: white;
}

.inter-20px {
  font-family: Inter, serif;
  font-size: 1.3333rem; /* (Approx. 20px / 15px) - Adjusted */
  color: #3c4356;
}

.inter-dark-20px {
  font-family: Inter, serif;
  font-size: 1.3333rem; /* (Approx. 20px / 15px) - Adjusted */
  color: #3c4356;
}

.inter-dark-30px {
  font-family: Inter, serif;
  font-size: 2rem; /* (Approx. 30px / 15px) - Adjusted */
  color: #3c4356;
}

.inter-white-30px {
  font-family: Inter, serif;
  font-size: 2rem; /* (Approx. 30px / 15px) - Adjusted */
  color: white;
}

.title-text {
  color: white;
  font-size: 2.3333rem; /* (Approx. 35px / 15px) - Adjusted */
  font-weight: bold;
  text-align: center;
  line-height: 3.3333rem; /* (Approx. 50px / 15px) - Adjusted */
}

/* Media query for screens between 1441px and 1600px */
@media (max-width: 1600px) and (min-width: 1441px) {
  html {
    font-size: 14px; /* Further adjusted base font size */
  }

  .century-48px {
    font-size: 6.0714rem; /* (Approx. 85px / 14px) - Adjusted */
  }

  .century-36px {
    font-size: 2.5rem; /* (Approx. 35px / 14px) - Adjusted */
    line-height: 4.2857rem; /* (Approx. 60px / 14px) - Adjusted */
  }
	.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 2.2rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}

  .inter-13px,
  .inter-13px-white {
    font-size: 1.2143rem; /* (Approx. 17px / 14px) - Adjusted */
  }

  .inter-20px,
  .inter-dark-20px {
    font-size: 1.2857rem; /* (Approx. 18px / 14px) - Adjusted */
  }

  .inter-dark-30px,
  .inter-white-30px {
    font-size: 1.6429rem; /* (Approx. 23px / 14px) - Adjusted */
  }

  .title-text {
    font-size: 2.7857rem; /* (Approx. 39px / 14px) - Adjusted */
    line-height: 2.8571rem; /* (Approx. 40px / 14px) - Adjusted */
  }
}

/* Media query for screens between 1367px and 1440px */
@media (max-width: 1440px) and (min-width: 1367px) {
  html {
    font-size: 13px; /* Further adjusted base font size */
  }

  .century-48px {
    font-size: 6.0714rem; /* (Approx. 85px / 14px) - Adjusted */
  }

  .century-36px {
    font-size: 2.5rem; /* (Approx. 35px / 14px) - Adjusted */
    line-height: 4.2857rem; /* (Approx. 60px / 14px) - Adjusted */
  }
	.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 2.2rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}

  .inter-13px,
  .inter-13px-white {
    font-size: 1.2143rem; /* (Approx. 17px / 14px) - Adjusted */
  }

  .inter-20px,
  .inter-dark-20px {
    font-size: 1.1857rem; /* (Approx. 18px / 14px) - Adjusted */
  }

  .inter-dark-30px,
  .inter-white-30px {
    font-size: 1.6429rem; /* (Approx. 23px / 14px) - Adjusted */
  }

  .title-text {
    font-size: 2.7857rem; /* (Approx. 39px / 14px) - Adjusted */
    line-height: 2.8571rem; /* (Approx. 40px / 14px) - Adjusted */
  }
}

/* Media query for screens between 1281px and 1366px */
@media (max-width: 1366px) and (min-width: 1281px) {
  html {
    font-size: 13px; /* Further adjusted base font size */
  }

  .century-48px {
    font-size: 4.3846rem; /* (Approx. 57px / 13px) - Adjusted */
  }

  .century-36px {
    font-size: 2.5385rem; /* (Approx. 33px / 13px) - Adjusted */
    line-height: 4.2308rem; /* (Approx. 55px / 13px) - Adjusted */
  }
.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 2.2rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}
  .inter-13px,
  .inter-13px-white {
    font-size: 1.2308rem; /* (Approx. 16px / 13px) - Adjusted */
  }

  .inter-20px,
  .inter-dark-20px {
    font-size: 1.2308rem; /* (Approx. 16px / 13px) - Adjusted */
  }

  .inter-dark-30px,
  .inter-white-30px {
    font-size: 1.6154rem; /* (Approx. 21px / 13px) - Adjusted */
  }

  .title-text {
    font-size: 2.8462rem; /* (Approx. 37px / 13px) - Adjusted */
    line-height: 3.0769rem; /* (Approx. 40px / 13px) - Adjusted */
  }
}

/* Media query for screens between 769px and 1280px */
@media (max-width: 1280px) and (min-width: 769px) {
  html {
    font-size: 12px; /* Further adjusted base font size */
  }

  .century-48px {
    font-size: 4.5833rem; /* (Approx. 55px / 12px) - Adjusted */
  }

  .century-36px {
    font-size: 2.6667rem; /* (Approx. 32px / 12px) - Adjusted */
    line-height: 4.5833rem; /* (Approx. 55px / 12px) - Adjusted */
  }
.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 3rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}

  .inter-13px,
  .inter-13px-white {
    font-size: 1.1667rem; /* (Approx. 14px / 12px) - Adjusted */
  }

  .inter-20px,
  .inter-dark-20px {
    font-size: 1.1667rem; /* (Approx. 14px / 12px) - Adjusted */
  }

  .inter-dark-30px,
  .inter-white-30px {
    font-size: 1.6667rem; /* (Approx. 20px / 12px) - Adjusted */
  }

  .title-text {
    font-size: 3rem; /* (Approx. 36px / 12px) - Adjusted */
    line-height: 3.3333rem; /* (Approx. 40px / 12px) - Adjusted */
  }
}

/* Media query for tablets between 481px and 768px */
@media (max-width: 768px) and (min-width: 481px) {
  html {
    font-size: 11px; /* Further adjusted base font size */
  }

  .century-48px {
    font-size: 5.4545rem; /* (Approx. 60px / 11px) - Adjusted */
  }

  .century-36px {
    font-size: 2.5455rem; /* (Approx. 28px / 11px) - Adjusted */
    line-height: 4.5455rem; /* (Approx. 50px / 11px) - Adjusted */
  }
.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 2rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}	

  .inter-13px,
  .inter-13px-white {
    font-size: 1.4545rem; /* (Approx. 16px / 11px) - Adjusted */
  }

  .inter-20px {
    font-size: 1.8182rem; /* (Approx. 20px / 11px) - Adjusted */
  }

  .inter-dark-20px {
    font-size: 1.6364rem; /* (Approx. 18px / 11px) - Adjusted */
  }

  .inter-dark-30px,
  .inter-white-30px {
    font-size: 2.1818rem; /* (Approx. 24px / 11px) - Adjusted */
  }

  .title-text {
    font-size: 3.1818rem; /* (Approx. 35px / 11px) - Adjusted */
    line-height: 4.5455rem; /* (Approx. 50px / 11px) - Adjusted */
  }
}

/* Media query for mobile devices (max-width: 480px) */
@media screen and (max-width: 480px) {
  html {
    font-size: 10px; /* Further adjusted base font size */
  }

  .century-48px {
    font-size: 4.8rem; /* (Approx. 48px / 10px) - Adjusted */
  }

  .century-36px {
    font-size: 2.6rem; /* (Approx. 26px / 10px) - Adjusted */
    line-height: 4rem; /* (Approx. 40px / 10px) - Adjusted */
  }
.century-white-36px {
  font-family: Century, sans-serif;
  font-size: 2.6rem; /* (Approx. 48px / 15px) - Adjusted */
  line-height: 5.3333rem; /* (Approx. 80px / 15px) - Adjusted */
}

  .inter-13px,
  .inter-13px-white {
    font-size: 1.4rem; /* (Approx. 14px / 10px) - Adjusted */
  }

  .inter-20px {
    font-size: 1.8rem; /* (Approx. 18px / 10px) - Adjusted */
  }

  .inter-dark-20px {
    font-size: 1.6rem; /* (Approx. 16px / 10px) - Adjusted */
  }

  .inter-dark-30px {
    font-size: 1.4rem; /* (Approx. 14px / 10px) - Adjusted */
  }

  .inter-white-30px {
    font-size: 2rem; /* (Approx. 20px / 10px) - Adjusted */
  }

  .title-text {
    font-size: 2rem; /* (Approx. 20px / 10px) - Adjusted */
    line-height: 4rem; /* (Approx. 40px / 10px) - Adjusted */
  }
}
/* Header */

.main-header {
  background-color: #3c4356;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%;
  z-index: 100; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  height: auto;
	

	
}

.logo img {
  height: 100%; /* Make the image fill the logo container height */
  display: block; /* Prevent extra space below inline elements */
}

.menu-link {
  display: none; /* Hide by default on larger screens */
  font-size: 24px;
  color: white;
  text-decoration: none;
  cursor: pointer;
  padding: 10px;
}

.main-nav {
  display: block; /* Show by default on larger screens */
}

.main-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.main-menu li {
  margin-left: 0px;
}

.main-menu li:first-child {
  margin-left: 0;
}

.main-menu a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 10px 15px;
}
.main-menu a.contact {
  background-color: #C4a668; 
}
.main-menu a:hover {
  color: #f5a425; 
}

/* Submenu Styles */
.has-submenu {
  position: relative;
}

.has-submenu > a::after {
  content: '\f107'; 
  font-family: 'FontAwesome';
  margin-left: 20px;
}

.sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-left: 0px;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #3c4356;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: none; 

}

.has-submenu:hover .sub-menu {
  display: block;
}

.sub-menu li a {
  	padding: 10px 10px;
  	display: block;
  	color: white;
  	text-decoration: none;
	padding-left: 10px;
}

.sub-menu li a:hover {
  background-color: #f0f0f0;
}

@media (max-width: 992px) {
  .main-header {
    flex-direction: row;
    align-items: center; /* Vertically center items (logo & toggle) */
    height: 60px; /* Set a specific height for the header */
    padding: 10px 15px;
    max-width: 100% !important;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }

  .logo {
    margin-bottom: 0;
    width: auto; /* Adjust width based on logo aspect ratio */
    display: flex;
    align-items: center; /* Vertically center image within logo container */
    height: 100%; /* Make logo container the same height as the header */
  }

  .logo img {
    max-height: 100%; /* Make image try to fill the logo container height */
    width: auto; /* Maintain aspect ratio */
  }

  .menu-link {
    display: block;
    font-size: 24px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    padding: 8px;
    align-self: center; /* Redundant if header align-items is center */
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 60px; /* Match the header height */
    left: 0;
    width: 100%;
    background-color: rgba(60, 67, 86, 0.95);
    z-index: 99;
    overflow-y: auto;
    max-height: calc(100vh - 60px); /* Match the header height */
  }

  .main-nav.open {
    display: block;
  }

  .main-menu {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .main-menu li {
    margin-left: 0;
    border-bottom: 1px solid #eee;
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu a {
    padding: 15px;
    display: block;
    color: white;
    text-align: left;
  }

  .has-submenu > a::after {
    display: block;
    float: right;
  }

  .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    display: none;
    padding-left: 20px;
  }

  .has-submenu.open-submenu > .sub-menu {
    display: block;
  }

  .sub-menu li a {
    padding-left: 40px;
    text-align: left;
  }
}

/* Slider */
.main-banner {
  position: relative;
  overflow: hidden;
  margin-bottom: -7px;
  min-width: 100%;
  max-width: 100%;
  object-fit: cover;
  z-index: -1;
  /* Default max-height for wider screens (greater than 1601px) */
  max-height: 55vh; /* Or 60vh, depending on your desired behavior */
	display: flex; /* Enable flex container */
  justify-content: center; /* Center horizontally (if needed) */
  align-items: center; /* Center vertically */
}

/* Responsive adjustments for screens up to 992px wide */
@media (max-width: 992px) {
  .main-banner {
	  object-fit: contain;  
    /* You can add specific styles for smaller screens here if needed */
  }
  .main-banner img {
    height: auto; /* Allows image height to adjust within the banner */
  }
}

/* Responsive adjustments for screens up to 1601px wide */
@media (max-width: 1600px) and (min-width: 993px) {  .main-banner {
    max-height: 45vh; /* Adjust this value as needed for 1600px screens */

  }
}
/*welkom*/

	.intro-services {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for better responsiveness */
    padding-top: 7px; /* Consistent padding for the section */
    box-sizing: border-box;
    align-items: stretch; /* Align items to the top by default */
}

.intro-container {
    flex: 1 600px; /* Grow, shrink, and initial width */
    padding: 1%;
	padding-top: 0.5%;
    box-sizing: border-box;
    background-color: #B9BBC3;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Consistent gap between elements */
}

.intro-image-container {
    flex: 1 400px; /* Grow, shrink, and initial width */
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.centered-text {
    color: #C4a668;
    text-align: center;
    padding: 45px;
	padding-top: 40px;
    box-sizing: border-box;
    flex-grow: 1; /* Allow it to take available vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.diensten-image-container {
    width: 100%; /* Full width within its container */
    box-sizing: border-box;
}

.diensten-image-container img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px; /* Optional: style the image */
}

.welcome-text h2 {
    font-family: "Century", sans-serif;
    margin: 0;
    font-size: 2.5em; /* More responsive font size */
}

.highlight-text {
    background-color: #C4a668;
    color: white;
	

}

.welcome-text2 {
    line-height: 1.6;
    font-size: 1em; /* Relative font size */
}

.welcome-text2 br {
    display: none; /* Hide br by default, handle with responsive text */
}

.services-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between button rows */
    margin-top: 20px;
}

.button-row {
    display: flex;
    justify-content: center; /* Center buttons by default */
    gap: 10px; /* Space between buttons in a row */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.button {
    background-color: #D3BB89;
    color: #3c4356;
    border: 1px solid #ccc;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 30px 40px;
    text-align: center;
    box-sizing: border-box;
    min-width: 150px; /* Minimum width for buttons */
    height: auto; /* Adjust height based on content */
	margin: 10px
}

.button:hover {
    background-color: #e0e0e0;
}

.second-row {
    justify-content: center; /* Ensure second row buttons are also centered */
	
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .intro-services {
        flex-direction: column; /* Stack containers */
    }

    .intro-container {
        width: 100%;
        margin-bottom: 20px;
    }

    .intro-image-container {
        width: 100%;
    }

    .centered-text {
        font-size: 30px;
    }

    .button-row {
        justify-content: center; /* Center buttons on smaller screens */
    }
	.highlight-text {
    background-color: #C4a668;
    color: white;
}
}

@media (max-width: 576px) {
    .centered-text {
        font-size: 24px;
    }

    .button {
        font-size: 1.1em;
        min-width: 20%;
		max-width: 33%;
        padding: 10px 0px;
		margin: 0px;
		flex: auto;
		
		
    }
	
	.intro-container {
    flex: 1 600px; /* Grow, shrink, and initial width */
    padding: 30px;
    box-sizing: border-box;
    background-color: #B9BBC3;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Consistent gap between elements */
	}

}

/* Bouwkostenramingen */
.wrapper {
  position: relative;
}

.bouwkosten-container {
  position: relative;
  z-index: 1;
  border: hidden;
  height: 43em;
  margin-bottom: 1em;
  margin-top: 3%;
  margin-left: 30%;
  background-color: #DCDDE1;
  padding-left: 8%;
  padding-top: 2%;
}

.bouwkosten-diensten-title {
  position: absolute;
  top: -0px;
  left: 5%;
  width: 23%;
  height: auto;
	opacity: 0.8;
}

.bouwkosten-title {
  position: absolute;
  top: -4%;
  left: 7%;
  width: auto;
  background-color: #C4a668;
  z-index: 2;
  border-radius: 0px;
  opacity: 0.8;
height: auto;
padding-left: 2%;
padding-right: 2%;
}

.bouwkosten-overlay {
  position: absolute;
  z-index: 2;
  background-color: #B9BBC3;
  width: 50%;
  left: 40%;
  top: 32%;
  height: auto;
  opacity: 0.9;
  padding-left: 1em;
  line-height: 25px;
  padding-right: 0.5em;

}

.bouwkosten-image {
  position: absolute;
  z-index: 2;
  width: 30%;
  height: 60%; 
  left: 20%; 
  top: 10em; 
  transform: translateX(-50%); 
  overflow: hidden; 
  opacity: 0.6;
}

.bouwkosten-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
	visibility: visible;
}

.bouwkosten-uitleg {
  background-color: #C4a668;
  width: 55%;
  padding: 1em;
  box-sizing: border-box;
  margin: 0 auto;
  opacity: 0.8;
  top: -30%;

}
@media (max-width: 1366px) {
.bouwkosten-container {
  position: relative;
  z-index: 1;
  border: hidden;
  height: 50em;
  margin-bottom: 1em;
  margin-top: 3%;
  margin-left: 30%;
  background-color: #DCDDE1;
  padding-left: 8%;
  padding-top: 2%;
}
}

@media (max-width: 992px) {
  .wrapper {
    width: 100%;
    margin-left: 0; 
  }

  .bouwkosten-container {
    position: static;
    height: auto;
    margin-left: 0;
    margin-top: 1em;
    margin-bottom: 1em;
    padding: 1em; 
  }

  .bouwkosten-diensten-title {
    position: static;
    width: auto;
    text-align: center; 
    margin-bottom: 1em; 
    left: auto; 
    top: auto; 
  }

  .bouwkosten-title {
    position: static;
    width: auto;
    margin: 1em auto; 
    left: auto; 
    top: auto; 
    border-radius: 0px; 
    opacity: 0.8;
	height: auto;
  }

  .bouwkosten-overlay {
    position: static;
    width: 100%;
    left: auto;
    top: auto;
    height: auto;
    margin-bottom: 1em;
    padding: 1em;
    opacity: 0.9;
  }

  .bouwkosten-image {
    position: static;
    width: 100%; 
    height: auto; 
    margin: 1em auto; 
    left: auto;
    top: auto;
    transform: none;
    opacity: 0.6; 
  }

  .bouwkosten-image img {
    visibility: visible; 
  }

  .bouwkosten-uitleg {
    width: 100%;
    margin: 1em 0; 
    opacity: 0.8; 
  }
}


@media (max-width: 480px) {
	.bouwkosten-title {
		height: auto
	}
}

/* Second Opinion */
.main-container {
    position: relative;
    width: 60%;
    margin: 2em auto;
    margin-left: 100px;
  	background-color: #DCDDE1;
    padding: 2em;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #ccc;
    height: 650px;
	  margin-top: 3%;
}

.overlay-box {
    position: absolute;
    top: 23%;
    left: 4%;
    width: 90%;
    height: auto;
    background-color: #B9BBC3;
    z-index: 2;
    text-align: left;
    line-height: 25px;
    padding: 0.5em;
}

.second-opinion-title {
    position: absolute;
    top: -30px;
    left: 8%;
    width: auto;
    height: auto;
    background-color: #C4a668;
    z-index: 2;
    border-radius: 0px;
    opacity: 0.8;
	padding-left: 2%;
	padding-right: 2%;
}

.slogan-1 {
    position: absolute;
    top: 40%;
    right: -55%;
    width: 35%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
    color: #C4a668;
}

.slogan-1 span {
    color: #C4a668;
}

.second-opinion-uitleg {
    position: absolute;
    margin-top: 10%;
    bottom: -34%;
    right: -30%;
    width: 85%;
    padding: 0.5em;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    background-color: #C4a668;
    height: auto;
    box-sizing: border-box;
    margin: 0 auto;
    opacity: 0.8;
	margin-bottom: 2%;

}

@media (max-width: 992px) {
.main-container {
    position: relative;
    width: 60%;
    margin: 2em auto;
    margin-left: 100px;
  	background-color: #DCDDE1;
    padding: 2em;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #ccc;
    height: 650px;
	margin-top: 3%;
}
}

@media (max-width: 992px) {
    .main-container {
        width: 100%;
        margin: 2em auto;
        margin-left: auto;
        height: auto;
        padding: 1.5em;
        position: relative; 
    }

    .second-opinion-title {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 1em auto;
        text-align: center;
		padding-left: 2%;
		padding-right: 2%;
    }

    .overlay-box {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 1.5em;
        padding: 1em;
    }

    .slogan-1 {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 80%;
        margin: 2em auto;
        transform: translateY(0);
        text-align: center;
    }

    .slogan-1 span {
        font-size: 32px;
    }

    .second-opinion-uitleg {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        width: 90%;
        margin: 2em auto;
        margin-top: 2em;
        height: auto;
    }
}

/* Planoptimalisatie */
.plan-container {
    position: relative;
    width: 75%;
    margin: 2em auto;
    margin-left: 300px;
    background-color: #DCDDE1;
    padding: 1em;
	padding-top: 2em;
    padding-left: 23em;
   margin-top: 3%;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #ccc;
    height: 1000px; 
}

.overlay-box3 {
    position: absolute;
    top: 30%;
    left: 40%;
    width: 30%;
    min-width: 30%;
	min-height: 75%;
    height: 75%; 
    background-color: #B9BBC3;
    z-index: 2;
    text-align: left;
    line-height: 25px;
    padding: 1em;
    right: auto;
    word-break: break-word; 
}

.overlay-box4 {
    position: absolute;
    top: 30%;
    left: 72.5%;
    width: 22.5%;
    height: 75%;
    background-color: #B9BBC3;
    z-index: 2;
    text-align: left;
    line-height: 25px;
    padding: 1em;
    word-break: break-word;
}

.plan-title {
    position: absolute;
    top: -30px;
    left: 7%;
    width: auto;
    height: auto;
    background-color: #C4a668;
    z-index: 2;
    border-radius: 0px;
    opacity: 0.8;
	padding-left: 2%;
	padding-right: 2%;
}

.slogan-3 {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%; 
  left: 0%; 
  transform: translateX(-15%); 
  overflow: hidden; 
  opacity: 0.6;
}
.slogan-3 img {
  width: 50%;
  height: 70%;
  object-fit: scale-down; 
visibility: visible;
}

.plan-screening {
    position: relative;
    width: 85%;
    height: 1%;
    z-index: 2;
	top: 5%;
	left: 15%;
}

.plan-uitleg {
	position: relative;
    top: 50%;
    width: 60%;
    padding: 1em;
    background-color: #C4a668;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    line-height: 1.5;
    height: auto;
    opacity: 0.8;
	left: 20%;
}
@media (max-width: 1600px) {
	.plan-container {
	height: 1100px;
	}
	.plan-uitleg {
   	top: -35px;	
	}
}

@media (max-width: 1366px) {
.plan-container {
    position: relative;
    width: 75%;
    margin: 2em auto;
    margin-left: 300px;
    background-color: #DCDDE1;
    padding: 1em;
	padding-top: 1.5em;
    padding-left: 23em;
   margin-top: 3%;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #ccc;
    height: 1150px; 
}
	.overlay-box3 {
    position: absolute;
    top: 27%;
    left: 40%;
    width: 30%;
    min-width: 30%;
	min-height: 75%;
    height: 75%; 
    background-color: #B9BBC3;
    z-index: 2;
    text-align: left;
    line-height: 25px;
    padding: 1em;
    right: auto;
    word-break: break-word; 
}

.overlay-box4 {
    position: absolute;
    top: 27%;
    left: 72.5%;
    width: 22.5%;
    height: 75%;
    background-color: #B9BBC3;
    z-index: 2;
    text-align: left;
    line-height: 25px;
    padding: 1em;
    word-break: break-word;
}
	.plan-screening {
    position: relative;
    width: 85%;
    height: 1%;
    z-index: 2;
	top: 2%;
	left: 15%;
}
}

@media (max-width: 992px) {
    .plan-container {
        width: 100%;
        margin: 2em auto;
        margin-left: auto;
        padding: 1.5em;
        padding-left: 1.5em; 
        padding-top: 0px!important;
        height: auto; 
        position: relative;
		margin-top: 0px!important;
    }

    .plan-title {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 1em auto;
        text-align: center;
		padding-left: 2%;
		padding-right: 2%;	
    }

    .overlay-box3,
    .overlay-box4 {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 1.5em;
        padding: 1em;
    }

    .slogan-3 {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 2em auto;
        transform: translateY(0) translateX(0); 
        text-align: center;
        opacity: 0.6; 
		width: 100%; 
		height: auto;
    }
		
		.slogan-3 img { 
        max-width: 100%;
        height: auto; 
		width: auto;
    }
	
    .plan-screening {
        position: relative;
        width: 100%;
        left: auto;
        height: auto; 
        margin-top: 1em; 
    }

    .plan-uitleg {
        position: relative;
        left: auto;
        top: auto;
        width: 90%;
        margin: 2em auto;
        margin-top: 2em;
    }
}

/* Haalbaarheidsonderzoek */
.haalbaarheid-container {
    position: relative;
    width: 60%;
    margin: 2em auto;
    margin-left: 30%;
    background-color: #DCDDE1;
    padding-left: 4em;
	padding-right: 4em;
	padding-top: 2em;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #ccc;
    height: 700px;
	  margin-top: 3%;
}

.overlay-box5 {
    position: absolute;
    top: 200px;
    left: 25%;
    width: 30%;
    height: auto;
    background-color: #B9BBC3;
    color: white;
    z-index: 3;
    text-align: left;
    line-height: 25px;
    padding: 1em; 
    list-style: none !important; 
}

.overlay-box5 ul {
    padding-left: 0 !important; 
    margin-left: 1.2em; 
    list-style: none !important; 
}

.overlay-box5 li {
    position: relative;
    padding-left: 1em; 
    margin-bottom: 0.5em;
    list-style: none !important; 
}

.overlay-box5 li::before {
    content: "\2022";
    color: white;
    position: absolute;
    left: 0;
    top: 0;
}


.overlay-box6 {
    position: absolute;
    top: 200px;
    left: 60%;
    width: 35%;
    height: auto;
    background-color: #B9BBC3;
    color: white;
    z-index: 3;
    text-align: left;
    line-height: 25px;
    padding: 1em;
    list-style: none !important; 
}

.overlay-box6 ul {
    padding-left: 0 !important; 
    margin-left: 1.2em;
    list-style: none !important;
}

.overlay-box6 li {
    position: relative;
    padding-left: 1em; 
    margin-bottom: 0.5em;
    list-style: none !important; 
}

.overlay-box6 li::before {
    content: "\2022";
    color: white;
    position: absolute;
    left: 0;
    top: 0;
}

.haalbaarheid-title {
    position: absolute;
    top: -30px;
    left: 8%;
    width: auto;
    height: auto;
    background-color: #C4a668;
    z-index: 2;
    border-radius: 0px;
    opacity: 0.8;
	padding-left: 2%;
	padding-right: 2%;	
	
}

.haalbaarheid-img {
    position: absolute;
    right: 40%;
    width: 50%;
    text-align: center;
    left: -45%;
    top: 5em;
    opacity: 0.6;
    height: 75%;

    z-index: 2;
}
.haalbaarheid-img img {
  width: 100%;
  height: 100%;
  object-fit: scale-down; 
visibility: visible;
}

.haalbaarheid-uitleg {
    position: absolute;
    width: 80%;
    top: 100%;
    left: -10%;
    padding: 1em;
    background-color: #C4a668;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
    z-index: 3;
    opacity: 0.8;
}

@media (max-width : 1442px ){
	.haalbaarheid-container {
	height: 550px;
	width: 70%;

	}
	.overlay-box5 {
    top: 150px;
	width: 35%;
	left: 20%;
	

	}
	.overlay-box6 {
    top: 150px;
	}
}

@media (max-width: 992px) {
    .haalbaarheid-container {
        width: 100%;
        margin: 2em auto;
        margin-left: auto; 
        padding: 1.5em;
        height: auto; 
        position: relative; 
    }

    .haalbaarheid-title {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 1em auto;
        text-align: center;
		padding-left: 2%;
		padding-right: 2%;	
		height: auto;
    }

    .overlay-box5,
    .overlay-box6 {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 1.5em;
        padding: 1em;
    }

    .haalbaarheid-img {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        margin: 1em auto;
        transform: translateY(0) translateX(0); 
        text-align: center;
        height: auto; 
        opacity: 0.6; 
		max-width: 100%;
    }
			.haalbaarheid-img img { 
        max-width: 100%;
        height: auto; 
    }

    .haalbaarheid-uitleg {
        position: relative;
        width: 90%;
        top: auto;
        left: auto;
        margin: 2em auto;
        margin-top: 2em;
    }
}

/* Risicomanagement */
.risico-container {
    position: relative;
    width: 60%;
	margin-top: 3%;
    margin-left: 5%; 
    background-color: #DCDDE1;
    padding: 2em;
	padding-left: 4em;
    padding-right: 12em;
    box-sizing: border-box;
    z-index: 1;
    border: 1px solid #ccc;
    height: 450px;
	  margin-bottom: 3%;
}

.overlay-box2 {
    position: absolute;
    top: 42%;
    left: 50px;
    width: 50%;
    height: auto;
    background-color: #B9BBC3;
    color: white;
    z-index: 2;
    text-align: left;
    line-height: 25px;
	padding: 1em;
}

.risicomanagement-title {
    position: absolute;
    top: -30px;
    left: 8%;
    width: auto;
    height: auto;
    background-color: #C4a668;
    z-index: 2;
    border-radius: 0px;
    opacity: 0.8;
	padding-left: 2%;
	padding-right: 2%;	
}

.slogan-2 {
    position: absolute;
    top: 35%;
    right: -50%;
    width: 40%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
	color: #C4a668;
}

.risicomanagement-uitleg {
    position: absolute;
    bottom: -35%;
    right: -20%;
    width: 100%;
    padding: 1em;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 3;
    line-height: 1.5;
    background-color: #C4a668;
    height: auto;
    opacity: 0.8;
}

.risico-uncertainties {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5em;
}

.risico-uncertainties li {
    margin-bottom: 0.3em;
}


@media (max-width: 992px) {
    .risico-container {
        width: 100%;
        margin: 2em auto;
        margin-left: auto; 
        padding: 1.5em;
        height: auto; 
        position: relative;
    }

    .risicomanagement-title {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        margin: 1em auto;
        text-align: center;
		padding-left: 2%;
		padding-right: 2%;	
    }

    .overlay-box2 {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin-top: 1.5em;
        padding: 1em;
    }

    .slogan-2 {
        position: relative;
        top: auto;

        right: auto;
        left: auto;
        width: 80%;
        margin: 2em auto;
        transform: translateY(0) translateX(0); 
        text-align: center;
    }

    .risicomanagement-uitleg {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        width: 90%;
        margin: 2em auto;
        margin-top: 2em;
        height: auto;
    }
}

/* Werkwijze */

.werkwijze-container {
    position: relative;
    width: 80%; 
    margin: 2em auto;
    background-color: white;
    padding: 1em;
    box-sizing: border-box;
    z-index: 1;
    border: 0px solid #ccc;
    height: 800px;
    margin-bottom: 8%;
}

.werkwijze-title {
    position: absolute;
    left: 2.5%;
    width: 30%;
    height: 15%;
    background-color: white;
    font-size: 90px;
    text-align: center;
    line-height: 100px;
    z-index: 2;
    opacity: 0.8;
}

.slogan-5 {
    position: absolute;
    right: 10%;
    top: 5%;
    width: 30%;
    height: 30%;
    background-color: white;
    color: #B39547;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;

}

.overlay-box7 {
    position: absolute;
    top: 15%;
    left: 0%;
    width: 52%;
    height: 30%;
    background-color: #DCDDE1;
    z-index: 2;
    text-align: left;
    padding: 1em;
}

.overlay-box8 {
    position: absolute;
    top: 35%;
    left: 1%;
    width: 24%;
    height: 28%;
    background-color: #D0B989;
    z-index: 2;
    text-align: left;
    opacity: 0.9;
	padding: 1em;
	line-height: 25px;
}

.overlay-box9 {
    position: absolute;
    top: 35%;
    left: 27%;
    width: 26%;
    height: 45%;
    background-color: #D0B989;
    z-index: 2;
    text-align: left;
    opacity: 0.9;
	padding: 1em;

}

.overlay-box10 {
    position: absolute;
    top: 40%;
    left: 55%;
    width: 43%;
    height: 40%;
    background-color: #D0B989;
    z-index: 2;
    text-align: left;
    opacity: 0.9;
	padding: 1em;

}

.overlay-box11 {
    position: absolute;
    top: 68%;
    left: 1%;
    width: 24%;
    height: 41%;
    background-color: #D0B989;
    z-index: 2;
    text-align: left;
    opacity: 0.9;
	padding: 1em;

}

.overlay-box12 {
    position: absolute;
    top: 83%;
    left: 27%;
    width: 71%;
    height: 26%;
    background-color: #D0B989;
    z-index: 2;
    text-align: left;
    opacity: 0.9;
	padding: 1em;

}

.werkwijze-uitleg {
    position: absolute;
    width: 69%;
    height: auto;
    top: 105%;
    left: 15%;
    padding: 3em;
    background-color: #DCDDE1;
    line-height: 1.5;
}

.heldere-uitgangspunten-lijst {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5em;
    margin-bottom: 0;
}

.heldere-uitgangspunten-lijst li {
    margin-bottom: 0.3em;
}

@media (max-width: 992px) {
    .werkwijze-container {
        width: 100%;
        margin: 2em auto;
        padding: 1.5em;
        height: auto; 
        position: relative;
    }

    .werkwijze-title {
        position: relative; 
        top: auto;
        left: auto;
        width: 80%;
        margin: 1em auto;
        text-align: center;
        font-size: 36px; 
        line-height: 1.2;
        height: auto;
    }

    .slogan-5 {
        position: relative; 
        top: auto;
        right: auto;
        left: auto;
        width: 80%;
        margin: 2em auto;
        transform: translateY(0) translateX(0); 
        text-align: center;
        height: auto;
        display: block; 
    }

    .overlay-box7,
    .overlay-box8,
    .overlay-box9,
    .overlay-box10,
    .overlay-box11,
    .overlay-box12 {
        position: relative; 
        top: auto;
        left: auto;
        width: 100%; 
        height: auto; 
        margin-top: 1.5em; 
        padding: 1em;
    }

    .werkwijze-uitleg {
        position: relative; 
        width: 90%;
        top: auto;
        left: auto;
        margin: 2em auto;
        padding: 1em;
        height: auto;
    }
}

/* Achtergrond */
.achtergrond { /* Changed to class selector to match HTML */
  width: 100%;
  margin: 2em auto;
  padding: 1em;
  box-sizing: border-box;
  z-index: 1;
  height: auto;
  display: flex;
  flex-direction: column;
}

.achtergrond-title-container {
  margin-left: 19em; /* Default value */
  margin-bottom: 1em;
  opacity: 0.8;
}

.main-content-row {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch; /* Default to stretch */
  margin-bottom: 0;
  flex-direction: column; /* Default to column */
}

.overlay-box13 {
  width: 100%;
  height: auto;
  background-color: #DCDDE1;
  color: #3c4356;
  z-index: 2;
  text-align: left;
  line-height: 30px;
  padding-top: 5em;
  padding-bottom: 2em;
  padding-left: 10%;
  padding-right: 10%;
  box-sizing: border-box;
  margin-bottom: 1em;
}

.right-image-container {
  width: 100%;
  height: auto;
}

.right-image-container img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.box-container {
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
  height: auto;
  margin-left: 15%;
  margin-right: 15%;
  gap: 20px;
}

.overlay-box14,
.overlay-box15,
.overlay-box16 {
  width: 30%;
  height: auto;
  background-color: #D0B989;
  z-index: 2;
  text-align: left;
  opacity: 0.9;
  box-sizing: border-box;
  padding: 10px;
}



/* Media query for screens larger than 992px */
@media (min-width: 992px) {
  .achtergrond-container {
    /* No specific changes here */
  }

  .main-content-row {
    flex-direction: row; /* Arrange text and image in a row */
    margin-bottom: 25px;
    display: flex;
    align-items: stretch; /* Ensure equal height */
  }

  .overlay-box13 {
    width: calc(75% - 1em); /* 75% width with some margin */
    height: auto; /* Let content determine height, but will stretch */
    margin-bottom: 0; /* Remove bottom margin on desktop */
    display: flex; /* For potential internal alignment */
    flex-direction: column; /* For potential internal alignment */
    justify-content: center; /* For potential internal alignment */
  }

  .right-image-container {
    width: 25%;
    height: 100%; /* Image container takes full height of row */
  }

  .right-image-container img {
    height: 100%;  /* Image fills the container height */
    object-fit: cover; /* Ensure image covers the area */
  }

  .achtergrond-title-container {
    margin-left: 19em; /* Maintain this for larger screens */
	opacity: 0.8;
  }
}

@media (max-width: 1600px) and (min-width: 1367px) {
  .overlay-box13 {
    width: calc(75% - 1em);
    padding-left: 8em;
    padding-right: 8em;
  }
  .achtergrond-title-container {
    margin-left: 6em;
  }
  .right-image-container {
    width: 25%;
    height: 100%;
  }
  .right-image-container img {
    height: 100%;
  }
}

@media (max-width: 1600px) and (min-width: 1367px) {
  .overlay-box13 {
    width: calc(75% - 1em);
    padding-left: 4em;
    padding-right: 4em;
	padding-top: 2em;
  }
}

@media (max-width: 1366px) and (min-width: 1281px) {
  .overlay-box13 {
    width: calc(75% - 1em);
    padding-left: 4em;
    padding-right: 4em;
	padding-top: 1em;
  }
	  .achtergrond-title-container {
    margin-left: 8em; /* Maintain this for larger screens */
  }
}

@media (max-width: 1280px) and (min-width: 769px) {
  .overlay-box13 {
    width: calc(75% - 1em);
    padding-left: 2em;
    padding-right: 2em;
	padding-top: 1em;
	line-height: 2rem;	  
  }
	.achtergrond-title-container {
    margin-left: 8em; /* Maintain this for larger screens */
  }
}

@media (max-width: 768px) and (min-width: 181px) {
  .overlay-box13 {
    padding-left: 2em;
    padding-right: 2em;
    padding-top: 5em;
    padding-bottom: 2em;
  }
  .achtergrond-title-container {
    margin-left: 1em;
    opacity: 0.8;
    text-align: center; /* Center title on smaller screens */
  }
  .main-content-row {
    flex-direction: column; /* Stack on smaller screens */
    margin-bottom: 1em;
  }
  .right-image-container {
    width: 100%;
    height: auto;
  }
  .right-image-container img {
    height: auto;
  }
}

@media (max-width: 992px) {
  .main-content-row {
    flex-direction: column; /* Stack items vertically */
  }

  .overlay-box13 {
    width: 100%;
    margin-bottom: 1em;
  }

  .right-image-container {
    width: 100%;
    height: auto; /* Ensure image scales properly */
  }

  .right-image-container img {
    height: auto;
    object-fit: cover;
  }

  .box-container {
    flex-direction: row;
    justify-content: space-between;
    margin-top: 1.5em;
    height: auto;
    gap: 0.5em;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    flex-wrap: wrap; /* Allow wrapping on smaller tablets */
  }

  .overlay-box14,
  .overlay-box15,
  .overlay-box16 {
    width: 32%;
    height: auto;
    margin-top: 0;
    padding: 1em;
    margin-bottom: 1em; /* Add margin between boxes on smaller screens */
  }

  .overlay-box14 h3,
  .overlay-box15 h3,
  .overlay-box16 h3 {
    margin-bottom: 0.5em;
    font-size: 1.2rem; /* Smaller heading on smaller screens */
  }
  .achtergrond-title-container {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 780px) {
  .box-container {
    flex-direction: column;
    gap: 1em;
    width: 100%;
  }

  .overlay-box14,
  .overlay-box15,
  .overlay-box16 {
    width: 100%;
    margin-bottom: 1em;
  }
}

/* Contact */
/* Contact (Existing styles - no changes here for the overall section) */
section.contact {
  background-color: transparent;
  padding-bottom: 120px;
}

.contact-container {
  max-width: 1920px;
  margin: 0 auto;
  padding: 20px;
  width: 90%;
  margin-top: 0%;
  position: relative;
}

.contact-header-container {
  text-align: center;
  margin-bottom: 30px;
  z-index: 1;
}

.contact-title {
  background-color: white;
  margin-bottom: 30px;
  text-align: left;
  line-height: 100px;
  opacity: 0.8;
}

.contact-intro-info-container {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  width: 50%;
  background-color: #B9BBC3;
  height: 350px;
  z-index: 0;
  position: relative;
  padding: 1em;
}

.contact-intro {
  flex: 1.2;
  z-index: 1;
  color: #3c4356;
}
.hyperlink-stateragoud {
  color: #3c4356;
}

.contact-info {
  flex: 0.8;
  color: #3c4356;
  background-color: #B9BBC3;
  text-align: right;
}

.contact-form-image-container {
  display: flex;
  margin-top: -190px;
  margin-left: 10%;
  width: 60%;
  background-color: #364156;
  z-index: 2;
  position: relative;
}

.contact-form-container {
  background-color: #364156;
  padding: 30px;
  width: 50%;
  box-sizing: border-box;
  z-index: 3;
}
.tm-btn-big {
  background-color: #C4a668;
  color: white;
}


.form-control {
  background-color: white;
  z-index: 1;
  color: #3c4356;
}

.contact-image-container {
  width: 50%;
  text-align: right;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 30px;
  z-index: 2;
}

.contact-image-container img {
  max-width: 100%;
  height: auto;
}

.g-recaptcha {
  transform: scale(0.2); /* Adjust the scale factor as needed (e.g., 0.5, 0.6) */
  transform-origin: 0 0; /* Keep the scaling anchored to the top-left */
  -webkit-transform: scale(0.7); /* For older Safari/Chrome versions */
  -webkit-transform-origin: 0 0;
}

/* General styles for the flex container */
#contact-form.contact-form-flex {
  display: flex;
  flex-direction: column; /* Stack form groups by default */
  gap: 15px; /* Spacing between form elements */
}

/* Styles for the reCAPTCHA and button container - default to stacked */
.recaptcha-button-container {
  display: flex;
  flex-direction: column; /* Stacked by default */
  align-items: flex-start; /* Align to the left by default */
  gap: 10px; /* Spacing between reCAPTCHA and button when stacked */
  margin-top: 20px;
  background-color: #364156; /* Match the form background */
  padding: 10px;
}

.recaptcha-button-container .g-recaptcha {
  width: auto;
}

.recaptcha-button-container .tm-text-left {
  margin-left: 0;
}

/* Media query for screens larger than or equal to 992px (large screens) */
@media (min-width: 992px) {
  #contact-form.contact-form-flex {
    flex-direction: column; /* Keep form groups stacked */
  }

  .recaptcha-button-container {
    flex-direction: row; /* Place reCAPTCHA and button in a row */
    justify-content: flex-start; /* Align to the left */
    align-items: center;
    gap: 20px; /* Spacing between them */
  }
}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {
  .contact-container {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .contact-title {
    text-align: center;
  }
  .contact-intro-info-container {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    width: 100%;
  }

  .contact-intro {
    width: 100%;
  }

  .contact-info {
    width: 100%;
    text-align: left;
    margin-top: 20px;
  }

  .contact-form-image-container {
    flex-direction: column;
    margin-top: 20px;
    margin-left: 0;
    width: 100%;
  }

  .contact-form-container {
    width: 100%;
    flex-direction: column;
  }

  .contact-form-container form {
    width: 100%;
  }

  .contact-image-container {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  /* Keep reCAPTCHA and button stacked on small screens */
  .recaptcha-button-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }
}

/* Media query for screens between 601px and 991px */
@media (max-width: 991px) and (min-width: 601px) {
  .contact-container {
    width: 90%;
    margin: 2em auto;
    padding: 1.5em;
    margin-top: 10%;
  }

  .contact-header-container {
    text-align: center;
    margin-bottom: 20px;
  }

  .contact-title {
    text-align: center;
    width: 80%;
    margin: 0 auto 20px;
  }

  .contact-intro-info-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    align-items: flex-start;
    text-align: left;
  }

  .contact-intro {
    flex: 1;
  }

  .contact-info {
    flex: 1;
    text-align: left;
  }

  .contact-form-image-container {
    flex-direction: column;
    margin-top: 0;
    margin-left: 0;
    width: 100%;
  }

  .contact-form-container {
    width: 100%;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .contact-image-container {
    width: 100%;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form-container form {
    width: 50%;
  }

  .contact-image-container img {
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  /* Keep reCAPTCHA and button stacked on medium screens */
  .recaptcha-button-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }
}

/* Media query for screens 992px and larger (large screens) */
@media (min-width: 992px) {
  .recaptcha-button-container {
    flex-direction: row; /* Place reCAPTCHA and button in a row */
    justify-content: flex-start; /* Align to the left */
    align-items: center;
    gap: 20px; /* Spacing between them */
  }
}
/* Footer */

footer {
    background-color: white;
    text-align: center;
}

footer p {
    margin-bottom: 0px;
    padding: 25px 0px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.col-md-12 {
	width: 100%!important;
	min-width: 80%;
}

footer p a,
footer p a:hover {
    color: #f5a425;
}

.footer-links {
    margin-top: 10px;
    padding: 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-links a,
.footer-links a:hover {
    color: black;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-links span {
    color: black;
    margin: 0 5px;
}

footer p a img {
    margin: 0 20px; /* Adjust the value as needed */
    vertical-align: middle; /* Align images vertically with text */
}

@media (max-width: 768px) { /* Adjust this breakpoint as needed */
    footer {
        text-align: center; /* Keep footer text centered */
    }

    /* Target the copyright/social links paragraph and make it a flex row */
    footer > div > div > div > p:first-child {
        display: flex;
        flex-direction: column; /* Keep NVBK logo on top initially */
        align-items: center; /* Center items horizontally */
    }

    footer > div > div > div > p:first-child a:first-child img { /* Target NVBK image */
        max-width:  80%; /* Make it take full width */
        height: auto;
        margin-bottom: 10px;
        margin-left: 0; /* Reset any left margin */
        margin-right: 0; /* Reset any right margin */
    }

    /* Target the container of the WhatsApp and LinkedIn links specifically */
    footer > div > div > div > p:first-child a:nth-child(2),
    footer > div > div > div > p:first-child a:nth-child(3) {
        display: inline-flex; /* Allow them to sit side by side */
        align-items: center; /* Vertically align */
        margin: 0 5px; /* Space between them */
    }

    /* **New rule to make the *container* of WhatsApp and LinkedIn a flex row** */
    footer > div > div > div > p:first-child {
        display: flex;
        flex-direction: column; /* Keep NVBK on top */
    }

    /* **Specifically target the second and third links' *parent* to be a row** */
    footer > div > div > div > p:first-child {
        display: flex;
        flex-direction: column; /* For NVBK on top */
    }

    /* **Let's try wrapping the WhatsApp and LinkedIn links in a div** */
    footer > div > div > div > p:first-child > div.social-links-mobile {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center; /* Center them horizontally */
    }

    footer > div > div > div > p:first-child > div.social-links-mobile a {
        margin: 0 5px;
    }

    footer > div > div > div > p:first-child > div.social-links-mobile a img {
        max-width: 40px;
        height: auto;
    }

    .footer-links { /* The paragraph containing the text links */
        margin-top: 10px; /* Keep some separation */
        text-align: center; /* Ensure links are centered if footer is centered */
        display: block; /* Ensure it takes full width and stacks below */
    }
}
