/* Global Styles */

@font-face {
  font-family: PoppinsBlack;
  src: url("../font/Poppins-Black.ttf");
}

@font-face {
  font-family: PoppinsExtraBold;
  src: url("../font/Poppins-ExtraBold.ttf");
}

@font-face {
  font-family: PoppinsBold;
  src: url("../font/Poppins-Bold.ttf");
}

@font-face {
  font-family: PoppinsMedium;
  src: url("../font/Poppins-Medium.ttf");
}

@font-face {
  font-family: PoppinsRegular;
  src: url("../font/Poppins-Regular.ttf");
}

body {
  margin: 0;
  padding: 0;
  font-family: PoppinsMedium, Arial, Helvetica, sans-serif;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: #8ee9df;
}

button {
  font-family: PoppinsMedium, Arial, Helvetica, sans-serif;
  background: #4375d6;
  background: linear-gradient(#8ee9df, #4375d6);
  border-radius: 11px;
  padding: 20px 45px;
  color:#ffffff;
  display: inline-block;
  text-align: center;
}

/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: #8ee9df #ffffff;
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 16px;
}

*::-webkit-scrollbar-track {
  background: #ffffff;
}

*::-webkit-scrollbar-thumb {
  background-color: #8ee9df;
  border-radius: 10px;
  border: 3px solid #ffffff;
}

/* Header Styles */
header {
  background-color: #090D30;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.centered-section {
  text-align: center;
  padding: 30px 0;
}

.centered-content {
  margin: 0 auto;
  max-width: 90%;
}

.centered-content h2 {
  font-size: 3em;
  margin-bottom: 10px;
}

.centered-content p {
  font-size: 1.6em;
}

.centered-content img {
  height: auto;
  width: 40%;
}

.header-banner {
  display: flex;
  align-items: center;
}

.header-banner img {
  width: 350px;
  margin-right: 10px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo img {
  width: 50px;
  margin-right: 10px;
}

.header-logo h1 {
  font-family: PoppinsBlack, Arial, Helvetica, sans-serif;
  color: #8EE9DF;
}

/* Add this CSS for the hamburger menu */
.menu-toggle { 
  display: block;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #8EE9DF;
  position: relative;
  transition: background-color 0.3s ease;
}

.hamburger:before,
.hamburger:after {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background-color: #8EE9DF;
  position: absolute;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger:before {
  top: -10px;
}

.hamburger:after {
  top: 10px;
}

.menu-toggle.active .hamburger {
  background-color: transparent;
}

.menu-toggle.active .hamburger:before {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .hamburger:after {
  transform: translateY(-10px) rotate(-45deg);
}

.main-menu {
  display: none;
}

.menu-toggle.active ~ .main-menu {
  display: block;
  position: absolute;
  top: 80px; /* Adjust the positioning based on your layout */
  right: 30px; /* Adjust the positioning based on your layout */
  background-color: #fff; /* Add a background color to the mobile menu */
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

/* Hide the original menu on small screens */
.main-menu {
  list-style-type: none;
  margin: 0;
  padding: 30px;
  font-family: PoppinsBlack, Arial, Helvetica, sans-serif;
}

.main-menu li {
  display: inline-block; /* Change display to inline-block */
  margin-right: 20px;
}

.main-menu li a {
  display: block;
  color: #8EE9DF;
  font-size: 1.6rem;
  text-decoration: none;
}

.main-menu li a:hover {
  color: #090D30;
}

/* Main Styles */
main {
  background-color: #fff;
  color: #090D30;
}

.hero {
  background-image: url("../img/stock_1.png");
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.featured-boxes {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
}

.featured-box {
  width: 30%;
  height: 550px; /* Fixed height for each box */
  padding: 20px;
  border: 1px solid #ccc;
  text-align: center;
  box-sizing: border-box; /* Ensure padding and border are included in the height calculation */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; /* Center content horizontally */
}

.featured-box .full {
  width: 90%;
  padding: 20px;
}

.featured-box h2 {
  margin-bottom: 20px;
  font-size: 3rem;
}

.featured-box-content {
  flex-grow: 1;
  overflow-y: auto; /* Enable scrolling if content exceeds box height */
  margin-bottom: 20px; /* Add some space between the content and button */
  display: flex;
  flex-direction: column;
  align-items: center; /* Center the content horizontally */
}

.featured-box p {
  font-size: 1.4rem;
  line-height: 1.6;
  margin: 0; /* Remove default margin to avoid overflow issues */
}

.featured-box-service-img {
  height: auto;
  width: 60%;
}

.feature-box-button {
  height: auto;
  width: 70%;
  font-size: 2.4em;
  font-family: PoppinsMedium, Arial, Helvetica, sans-serif;
  background: #4375d6;
  background: linear-gradient(#8ee9df, #4375d6);
  border-radius: 11px;
  padding: 20px 45px;
  color:#ffffff;
  display: inline-block;
  text-align: center;
  margin-top: auto; /* Ensure the button stays at the bottom */
  justify-content: center;
  align-items: center; /* Center button horizontally */
}

.featured-box-image {
  width: 60%;
  margin: 20px auto; /* Center the image horizontally */
}

.feature-box-display {
  display: block;
}

.featured-box-image img {
  width: 100%;
  height: auto;
}

.half-section {
  margin: 10px 0;
  padding: 10px 0;
}

.half-content {
  display: flex;
  justify-content: center;
  align-items: stretch; /* Changed from center to stretch */
  max-width: 90%;
  margin: 0 auto;
  position: relative;
}

.left-subsection,
.right-subsection {
  width: 45%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Ensure header stays top and button stays bottom */
  align-items: center;
  padding: 20px; /* Optional: space inside each box */
  box-sizing: border-box; /* Makes sure padding doesn't mess with width */
}

.left-subsection h2,
.right-subsection h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.left-subsection p,
.right-subsection p {
  font-size: 1.6em;
  line-height: 1.6;
}

.vertical-line {
  width: 3px;
  background-color: #090D30;
  height: 80%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.subsection-btn {
  height: auto;
  width: 70%;
  font-size: 2.4em;
  font-family: PoppinsMedium, Arial, Helvetica, sans-serif;
  background: #4375d6;
  background: linear-gradient(#8ee9df, #4375d6);
  border-radius: 11px;
  padding: 20px 45px;
  color: #ffffff;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
}

.half-subsection-image {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.half-subsection-image img {
  width: 40%;
  height: auto;
  padding-top: 5px;
  padding-bottom: 20px;
}

.padding-extra {
  padding-bottom: 60px;
}

.img-left {
  float: left;
  padding-right: 1px;
}

.img-right {
  float: right;
}

.featured-box iframe {
  width: 366px;
  height: 230px;
  padding-bottom: 25px;
}

.featured-box video {
  width: 366px;
  height: 230px;
  padding-bottom: 25px;
}

.image-container {
  width: 50%;
  padding: 10px;
  display: flex;
}

/* Enquiry Form */

.nextbtn, .prevbtn {
  font-size: 1.2em;
  width: 20%;
}

/* Style the horizontal ruler */
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none;  
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

.step.finish {
  background-color: #04AA6D;
}

.tab {
  display: none;
}

.signup {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #474e5d;
  padding-top: 50px;
}

.signup-content {
  background-color: #fefefe;
  margin: 5% auto;
  border: 1px solid #888;
  width: 80%;
}

input.invalid {
  background-color: #ffdddd;
}

.signup textarea {
  min-width: 98%;
  max-width: 98%;
}

.signup input, textarea, select {
  font-family: PoppinsMedium, Arial, Helvetica, sans-serif;
  font-size: 1em;
}

.signup input[type=date], input[type=time] {
  width: 44%;
}

.container {
  padding: 16px;
}

/* Full-width input fields */
input[type=text], input[type=password], input[type=number],input[type=date], input[type=time], textarea, select {
  padding: 15px;
  margin: 5px 0 22px 0;
  display: inline-block;
  border: none;
  background: #f1f1f1;
}

input[type=text], input[type=password], input[type=number], textarea, select {
  width: 98%;
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password], input[type=number],input[type=date], input[type=time], textarea, select:focus {
  background-color: #ddd;
  outline: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Contact CSS */

.contact-header {
  text-align: center;
  font-size: 3em;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.contact-info {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
}

.contact-info img {
  width: 40%;
  height: auto;
  border-radius: 4px;
  padding-left: 20px;
}

.contact-info .contact-details {
  width: 45%;
  margin-left: 10%;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.5;
  font-size: 1.4em;
}

.contact-info a {
  color: #4375D6;
}

.contact-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal background */

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Enable scrolling if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
}

/* Modal content */
.modal-content {
  background-color: #fefefe;
  margin: 10% auto; /* 10% from the top and centered */
  padding: 20px;
  border-radius: 8px;
  /* width: 95%; */
  max-width: 90%;
  position: relative;
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}

/* Team CSS */

.team-header {
  text-align: center;
  font-size: 3em;
}

.team-member {
  display: flex;
  margin: 0 auto 30px; /* Center horizontally with auto margins */
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: scroll;
  width: 95%; /* Ensure width is not 100%, so there's space for centering */
}

.team-member img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-right: 20px;
  position: sticky;
  top: 20px;
}

.team-member-info {
  flex: 1;
}

.team-member-name {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 5px;
}

.team-member-role {
  font-size: 2em;
  color: #4375D6;
  margin-bottom: 10px;
}

.team-member-bio {
  font-size: 1.5em;
  line-height: 1.5;
}

.profile-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  max-width: 380px;
  width: 100%; /* new */
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.profile-card img {
  width: 100%;
  height: auto;
}

.profile-footer {
  padding: 15px;
}

.profile-content {
  padding: 15px;
  flex-grow: 1;
  height: 150px; /* <- fixed height for scrolling */
  overflow-y: auto; /* <- enable vertical scroll */
}

.profile-card button {
  border: none;
  outline: 0;
  display: inline-block;
  padding: 8px;
  color: white;
  background-color: #000;
  text-align: center;
  cursor: pointer;
  width: 100%;
  font-size: 1.5em;
}

.profile-card button:hover, a:hover {
  opacity: 0.7;
}

.profile-name {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.profile-role {
  font-size: 1.5em;
  color: #4375D6;
  margin-bottom: 10px;
}

.testimonials {
  background-color: #fff;
  color: #090D30;
  padding: 40px;
  text-align: center;
  overflow: hidden;
}

.testimonial-row {
  width: 100%;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

.testimonial-track {
  display: flex;
  width: fit-content;
  animation: scroll-left 60s linear infinite;
}

.left-to-right .testimonial-track {
  animation-name: scroll-left;
}

.right-to-left .testimonial-track {
  animation-name: scroll-right;
}

.testimonial {
  width: 500px;
  margin: 0 10px;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #01054d;
  color: white;
  text-align: center;
  flex-shrink: 0;
}

.testimonial-title {
  font-size: 2em;
}

.testimonial-quote {
  font-size: 1em;
  margin: 0;
}

.testimonial-author {
  font-size: 1.4em;
}

.testimonial-row:hover .testimonial-track {
  animation-play-state: paused;
}

@media (max-width: 500px) {
  .modal-content {
    margin: 20% auto;
    width: 95%;
    padding: 15px;
  }

  .team-member {
    flex-direction: column; /* Stack image above text */
    align-items: center; /* Center contents */
    max-height: none; /* Allow full scrolling naturally */
    overflow-y: visible;
    padding: 15px;
  }

  .team-member img {
    width: 200px;
    height: 200px;
    margin: 0 0 20px 0; /* No side margin, bottom margin instead */
    position: static; /* Remove sticky behavior on mobile */
    top: auto;
  }

  .team-member-info {
    text-align: center;
  }

  .team-member-name {
    font-size: 2em;
  }

  .team-member-role {
    font-size: 1.5em;
  }

  .team-member-bio {
    font-size: 1.2em;
  }

  .close {
    font-size: 30px;
  }
}

@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@media (max-width: 500px) {
  .testimonial {
    width: 90vw; /* Use viewport width for more control */
    max-width: 320px; /* Cap it so it doesn’t get too wide */
    margin: 10px auto;
    padding: 15px;
    box-sizing: border-box;
  }

  .testimonial-title {
    font-size: 1.3em;
  }

  .testimonial-quote {
    font-size: 0.95em;
  }

  .testimonial-author {
    font-size: 1em;
  }

  .testimonial-track {
    animation-duration: 30s; /* Optional: slow it down a bit more on mobile */
  }
}

@media only screen and (max-width: 500px) {
  .testimonial {
    width: 100%; /* Set width to 100% for a single column on smaller screens */
  }
}

/* Styles for mobile */
@media (max-width: 500px) {
  /* Update font-size for better readability on small screens */
  body, html {
    font-size: 14px;
    overflow-x: hidden;
    width: 100%;
  }

  /* Header Styles */
  .centered-content h2 {
    font-size: 2.5em;
  }

  .centered-content img {
    height: auto;
    width: 100%;
  }

  .main-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  /* Show the menu when the toggle button is clicked */
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }

  .menu-toggle.active .hamburger:before {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-toggle.active .hamburger:after {
    transform: translateY(-10px) rotate(-45deg);
  }

  .menu-toggle.active ~ .main-menu {
    display: block;
    position: absolute;
    top: 80px; /* Adjust the positioning based on your layout */
    right: 30px; /* Adjust the positioning based on your layout */
    background-color: #fff; /* Add a background color to the mobile menu */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  /* Vertically align the menu items on mobile */
  .main-menu li {
    display: block;
    margin-right: 0; /* Remove the right margin */
    margin-bottom: 15px; /* Add margin between menu items */
  }


  .header-banner img {
    width: 300px;
    margin-right: 10px;
  }

  /* Hero section */
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  /* Featured boxes */
  .featured-boxes {
    flex-wrap: wrap;
  }

  .featured-box {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }

  .featured-box h2 {
    font-size: 2.5rem;
  }

  .featured-box p {
    font-size: 1.6rem;
    line-height: 1.5;
  }

  .featured-box img {
    width: 45%;
    padding-top: 0;
    padding-bottom: 10px;
  }

  /* Enquiry Form */
  .nextbtn, .prevbtn {
    font-size: 1.1em;
    width: 48%;
  }

  /* Contact CSS */
  .contact-header {
    font-size: 2.5em;
  }

  .contact-info {
    flex-wrap: wrap;
  }

  .contact-info img {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .contact-info .contact-details {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .contact-info p {
    font-size: 1.2em;
  }

  /* Team CSS */
  .team-header {
    font-size: 2.5em;
  }

  .team-member {
    flex-wrap: wrap;
    max-height: unset;
    overflow-y: unset;
  }

  .team-member img {
    width: 100%;
    height: auto;
    position: static;
    top: auto;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .team-member-info {
    width: 100%;
  }

  .team-member-name {
    font-size: 2em;
    margin-bottom: 0;
  }

  .team-member-role {
    font-size: 1.8em;
    margin-bottom: 5px;
  }

  .team-member-bio {
    font-size: 1.2em;
    line-height: 1.5;
  }
}

/* Footer Styles */
footer {
  background-color: #090D30;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.footer-logo img {
  width: 150px;
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  padding: 0;
}

.footer-nav ul li {
  margin: 0 20px;
}

.footer-nav ul li a {
  color: #fff;
  font-size: 1.4rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.footer-social a {
  display: inline-block;
  margin: 0 20px;
  font-size: 1.4em;
  text-decoration: none; 
  color: #8ee9df;
}

.footer-social a img {
  width: 40px;
}

.footer-contact {
  margin-bottom: 30px;
}

.footer-contact p {
  font-size: 1.1rem;
}

.footer-privacy {
  font-size: 0.8rem;
}

/* Media Query for screens 500px or less */
@media (max-width: 500px) {
  footer {
    padding: 20px;
  }

  .footer-logo img {
    width: 120px;
    margin-bottom: 10px;
  }

  .footer-nav {
    margin-bottom: 20px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-nav ul li {
    margin: 10px 20px;
  }

  .footer-nav ul li a {
    display: block;
    font-size: 1.2rem; /* Slightly larger font size for navigation items */
  }

  .footer-social {
    margin-bottom: 20px;
  }

  .footer-social a {
    margin: 0 10px;
  }

  .footer-social a img {
    width: 30px;
  }

  .footer-contact p {
    font-size: 1.1rem;
  }

  .footer-privacy {
    font-size: 0.7rem;
  }
}

@media (max-width: 500px) {
  .half-content {
    flex-direction: column;
    align-items: center; /* Center the subsections on small screens */
  }

  .left-subsection,
  .right-subsection {
    width: 100%;
    padding: 15px 10px;
    justify-content: flex-start; /* So content flows top to bottom naturally */
    align-items: center;
  }

  .left-subsection h2,
  .right-subsection h2 {
    font-size: 2em; /* Slightly smaller headings for small screens */
  }

  .left-subsection p,
  .right-subsection p {
    font-size: 1.4em; /* Slightly smaller text to fit better on small screens */
  }

  .subsection-btn {
    width: 90%;
    font-size: 1.8em;
    padding: 15px 20px;
  }

  .half-subsection-image img {
    width: 80%;
  }

  .vertical-line {
    display: none; /* Hide vertical divider on stacked layout */
  }
}