* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* Prevents horizontal scrollbars */
}

@font-face {
  font-family: "Grifter";
  src: url("/assets/fonts/GRIFTERBold.woff2") format("woff2"),
    url("/assets/fonts/GRIFTERBold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins Medium";
  src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: normal; /* This defines the Black weight */
  font-style: normal;
}
* {
  font-family: "Grifter", sans-serif;
}

p {
  font-family: "Poppins Medium", sans-serif;
  color: #07084c;
}

.about-us-page {
  background-color: #f0f3fa;
  height: 100vh;
  min-height: fit-content;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 10%;
  padding-top: 5%;
}

.history-title {
  font-weight: 700;
  color: #5042a6;
  font-size: 40px;
  line-height: 41px;
  margin-top: 5%;
  align-self: flex-start; /* Aligns the title to the left within the flex container */
  margin-left: 5%; /* Adds some padding to the left for spacing */
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  overflow-x: hidden; /* Hide scrollbars if any extra content overflows */
  padding-bottom: 5%;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar */
  gap: 10px; /* Space between cards */
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Enable smooth snap scrolling */
  padding: 70px; /* Optional padding for aesthetics */
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to right, #555dc2, #07084c);
  color: white;
  border: none;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s, opacity 0.3s;
  opacity: 0.7; /* Semi-transparent */
}

.arrow:hover {
  opacity: 1; /* Fully visible on hover */
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* Wrapper for each card and its title */
.card-wrapper {
  flex: 0 0 50%; /* Matches the card's size */
  display: flex;
  flex-direction: column; /* Stacks the title above the card */
  align-items: flex-start; /* Centers title and card horizontally */
  margin: 0 10px; /* Add spacing between cards */
  height: 400px; /* Set card height */
  scroll-snap-align: center; /* Ensure snapping centers this item */
  cursor: pointer;
}

/* Title styling */
.card-title {
  font-size: 40px; /* Adjust as needed */
  font-weight: 700;
  line-height: 41px;
  color: #07084c;
  margin-bottom: 10px; /* Space between title and card */
  text-align: left;
}

/* Card styling (unchanged) */
.card {
  flex: 0 0 100%; /* Fills the width of its wrapper */
  width: 700px;
  height: 400px; /* Set card height */
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: hidden; /* Prevents the ::before from overflowing */
  padding: 4%;
}

/* Gradient border styling */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background: var(--border-gradient);
}

/* Card content layout */
.card-content {
  display: flex;
  justify-content: flex-start; /* Align the content to the left */
  align-items: start;
  width: 90%;
  height: 90%;
}

/* Image inside card */
.card-image {
  width: 73px; /* Adjust the size as needed */
  height: 73px;
  margin-right: 20px; /* Space between the image and text */
}

/* Text content inside the card */
.card-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
}

/* Subtitle (title) inside the card */
.card-subtitle {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 5px;
  line-height: 41px;
  background: var(--border-gradient);
  -webkit-background-clip: text; /* For Chrome, Safari, and Edge */
  background-clip: text; /* For Firefox */
  color: transparent; /* Ensures that text itself is transparent, showing only the gradient */
}

.card-sub-subtitle {
  font-size: 32px;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #07084c;
}

/* Description (content) inside the card */
.card-description {
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 28px;
  letter-spacing: -0.05em;
  color: #07084c;
}

.prestataires {
  background-image: url("/assets/images/about-us/Rectangle-1561.svg");
  background-size: cover; /* Ensure the image covers the section */
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Prevent repeating the image */
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 5%;
}

.prestataires h2 {
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  text-align: center;
  color: #ffffff;
}

.prestataire-1 {
  width: 317.35px;
  /* height: 408.33px; */
  object-fit: cover; /* Ensures the video covers the container */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.prestataire-2 {
  width: 390.06px;
  /* height: 501px; */
  object-fit: cover; /* Ensures the video covers the container */
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.prestataire-2-container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Carousel container */
.prestataires-carousel-container {
  width: 100%; /* Full width of the page */
  overflow-x: hidden; /* Hide scrollbars if any extra content overflows */
  padding-bottom: 5%;
}

/* Carousel */
.prestataires-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px; /* Space between cards */
  /* overflow-x: auto;  Enable horizontal scrolling */
  /*  scroll-snap-type: x mandatory; Enable smooth snap scrolling */
  padding: 70px; /* Optional padding for aesthetics */
}

.prestataires-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

.prestataire-description {
  border-bottom-right-radius: 28px;
  border-bottom-left-radius: 24px;
  background-color: #f0f3fa;
  box-shadow: 0px 12px 28.2px 0px #00000026;
  height: 167.44px;
  width: 99.9%;
  padding-top: 80px;
  margin-top: -50px;
}
.prestataire-description h2 {
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  text-align: center;
  color: #5042a6;
}
.prestataire-description p {
  color: #5042a6;
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  letter-spacing: -0.05em;
}

.prestataires-wrapper {
  /* flex: 0 0 30%; Matches the card's size */
  /*margin: 0 10px;  Add spacing between cards */
  cursor: pointer;
}
.polygon-overlay {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%); /* Offset for perfect centering */
  width: 73px; /* Adjust size of the polygon */
  height: 73px;
  pointer-events: none; /* Ensure the overlay doesn't interfere with user interactions */
  z-index: 2; /* Keep it above the main image */
}

.prestataires-wrapper {
  flex-shrink: 0; /* Prevent resizing of the cards */
  transition: transform 0.6s ease; /* Smooth sliding effect */
}

/* begin videos carousel animation */
.prestataires-wrapper {
  transform: scale(0.9); /* Shrink non-middle videos */
  transition: opacity 0.5s ease-in-out; /* Smooth fade effect */
  opacity: 0.9; /* Dim non-middle videos */
}

.middle-prestataire {
  transform: scale(1); /* Enlarge the middle video */
  opacity: 1; /* Fully visible */
  z-index: 2; /* Bring to the front */
}

.prestataires-wrapper.hidden {
  opacity: 0.5; /* Hidden */
}

/* end videos carousel animation */

.section-founder-large-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  gap: 50px;
  width: 100%;
}

.section-founder-small-screen {
  display: none; /* Hide small screen section */
}

.section-founder-small-screen .founder-green-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #40b59e;
  width: 100%;
  height: 204px;
  padding: 5%;
  z-index: 2;
  position: relative;
}

.section-founder-small-screen .founder-green-heading .title {
  font-weight: 700;
  font-size: 24px;
  line-height: 24px;
  text-align: center;
  color: #f0f3fa;
  margin-bottom: 8%;
}

.section-founder-small-screen .founder-green-heading .content {
  font-weight: 400;
  font-size: 14px;
  line-height: 16px;
  text-align: center;
  letter-spacing: -0.05em;
  color: #f0f3fa;
}

.founder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5%;
  gap: 20px;
}

.founder-image-container {
  position: relative;
  display: inline-block;
}

.founder-image {
  background-image: url("/assets/images/about-us/Portrait_Mathieu.jpg");
  background-repeat: no-repeat;
  background-position: bottom center; /* Ensures the signature remains visible */
  background-size: cover;
  height: 514px;
  width: 400px;
  border-radius: 10px;
  overflow: hidden;
}

.founder-title {
  color: #07084c;
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  margin-bottom: 20px;
}

.founder-content {
  color: #07084c;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: -0.05em;
  max-width: 382px;
}

.you-wish-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10%;
}

.you-wish-title {
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
  color: #07084c;
}

.you-wish-title-small-screen {
  font-weight: 700;
  font-size: 20px;
  line-height: 20px;
  color: #5042a6;
  margin-bottom: 8%;
  margin-top: 8%;
  display: none;
}

.buttons-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}

.you-wish-button {
  width: 608px;
  height: 132px;
  border-radius: 10px;
  background-color: #f0f3fa;
  box-shadow: 0px 12px 28.2px 0px #0000000d;
  border: none;
  margin-bottom: 10px;
  color: #07084c;
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  text-align: center;
}

.you-wish-button:hover {
  cursor: pointer;
}

.blogs-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4%;
  gap: 50px;
  width: 100% !important;
  height: 100% !important;
  margin-top: 60px;
}

.blog-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 36px;
  text-align: center;
  color: #fc7315;
  margin-bottom: 20px;
}

.orange-button {
  width: 302px;
  height: 86px;
  border-radius: 127px;
  padding-left: 15px;
  padding-right: 15px;
  background-color: #fc7315;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
}
.orange-button:hover {
  cursor: pointer !important;
}

.blogs-large-screen {
  display: block;
}

.blogs-small-screen {
  display: none;
}
/* Blog carousel */
/* Carousel container */
.blogs-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  overflow-x: hidden; /* Hide scrollbars if any extra content overflows */
  padding-bottom: 5%;
}

/* Carousel */
.blogs-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Hide scrollbar */
  gap: 10px; /* Space between cards */
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Enable smooth snap scrolling */
  padding: 10px; /* Optional padding for aesthetics */
  margin-left: 60px;
}

.blogs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to right, #fc7315, #ff9a3c);
  color: white;
  border: none;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Makes it a circle */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  transition: background 0.3s, opacity 0.3s;
  opacity: 0.7; /* Semi-transparent */
}

.blogs-arrow:hover {
  opacity: 1; /* Fully visible on hover */
}

.left-arrow-blogs {
  left: 10px;
}

.right-arrow-blogs {
  right: 10px;
}

.blogs-carousel::-webkit-scrollbar {
  display: none; /* Hide scrollbar */
}

/* Wrapper for each card and its title */
.blog-wrapper {
  flex: 0 0 20%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 10px;
  scroll-snap-align: center;
  position: relative;
  box-sizing: border-box; /* Ensures proper sizing */
  cursor: pointer;
}

.blog-image {
  width: 374px;
  height: 374px;
  background-size: cover;
  background-repeat: no-repeat;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-bottom: -50px;
  position: relative;
  background-color: #f0f3fa;
  z-index: 1;
}

.blog-card {
  background-color: #ffffff;
  width: 374px;
  height: 231px;
  border-radius: 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  padding-top: 60px;
}

.blog-card-title {
  color: #fc7315;
  font-weight: 700;
  font-size: 24px;
  line-height: 26px;
  text-align: center;
}

.blog-card-content {
  color: #07084c;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  letter-spacing: -0.05em;
}

.blog-wrapper-small-screen {
  width: 170px;
  height: 216px;
  background-color: #ffffff;
  padding: 3%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.blog-wrapper-small-screen img {
  width: 135px;
  height: 135px;
  margin-bottom: 10%;
}

/* Media query for phone screens (up to 768px) */
@media screen and (max-width: 768px) {
  .section-founder-large-screen {
    display: none; /* Hide large screen section */
  }

  .section-founder-small-screen {
    display: flex; /* Show small screen section */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .arrow {
    display: none;
  }

  .blogs-arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .about-us-page {
    padding-top: 20%;
  }
  .history-title {
    font-size: 24px;
    line-height: 24px;
    margin-top: 8%;
  }

  /* Wrapper for each card and its title */
  .card-wrapper {
    flex: 0 0 50%; /* Matches the card's size */
    margin: 0 10px; /* Add spacing between cards */
    height: 224.38px; /* Set card height */
    cursor: pointer;
  }

  /* Title styling */
  .card-title {
    font-size: 24px; /* Adjust as needed */
    font-weight: 700;
    line-height: 24px;
  }

  /* Card styling (unchanged) */
  .card {
    flex: 0 0 100%; /* Fills the width of its wrapper */
    width: 285px;
    height: 224.38px; /* Set card height */
    padding: 4%;
  }

  /* Image inside card */
  .card-image {
    width: 27px; /* Adjust the size as needed */
    height: 27px;
    margin-right: 10px; /* Space between the image and text */
  }

  /* Subtitle (title) inside the card */
  .card-subtitle {
    font-size: 24px;
    margin-bottom: 5px;
    line-height: 26px;
  }

  .card-sub-subtitle {
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
  }

  /* Description (content) inside the card */
  .card-description {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 13.5px;
  }

  .founder-image {
    z-index: 1;
    position: relative;
  }

  .you-wish-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5%;
    width: 100%;
  }

  .you-wish-button {
    width: 304px;
    height: 66px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    line-height: 18px;
  }

  .you-wish-title {
    display: none;
  }

  .you-wish-title-small-screen {
    display: block;
  }

  .blog-title {
    font-size: 24px;
    line-height: 24px;
  }

  .blogs-large-screen {
    display: none;
  }

  .blogs-small-screen {
    display: block;
  }

  .blog-card-title {
    font-weight: 700;
    font-size: 13px;
    line-height: 12.5px;
  }

  .blogs-carousel {
    height: 250px;
    margin: 0;
  }

  .orange-button {
    width: 141px;
    height: 40px;
    border-radius: 29px;
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 700;
    font-size: 18px;
    line-height: 18px;
  }

  .prestataires {
    padding-top: 10%;
  }
  .prestataire-1 {
    width: 270.6px;
    height: 270.6px;
  }

  .prestataire-2 {
    width: 270.6px;
    height: 270.6px;
  }

  .polygon-overlay {
    width: 63.22px; /* Adjust size of the polygon */
    height: 54.75px;
  }

  .prestataires-carousel {
    gap: 0px;
    padding: 0px;
  }

  .prestataires-wrapper {
    /*flex: 0 0 60%;  Matches the card's size */
    margin: 0; /* Add spacing between cards */
  }

  .prestataires-carousel-container {
    margin-top: 30px;
  }
}
