:root {
  --text: #1a1a1a;
  --white: #ffffff;
  --background: #f9f6f1;
  --primary: #863018; /* inspired by the reddish-brown tone in ZORBA */
  --secondary: #3c9e47; /* bluish tone from the book stack */
  --accent: #3c9e47; /* green globe */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text);
}

/* 
  =========================================
          HELPER CLASSES 
  =========================================
*/
@keyframes left-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

.animate-left-right-1 {
  animation: left-right 2.4s ease-in-out infinite;
  animation-delay: 0s;
}
.border-primary {
  border: 2px solid var(--accent);
  transition-property: all; /* which properties animate */
  transition-timing-function: cubic-bezier(
    0.4,
    0,
    0.2,
    1
  ); /* Tailwind’s default “ease” */
  transition-duration: 300ms;
}

.border-primaryh:hover {
  border: 2px solid var(--accent);
}

.border-secondary {
  border: 2px solid var(--secondary);
}

.border-secondaryh:hover {
  border: 2px solid var(--secondary);
}

.boxshadow-primary:hover {
  box-shadow: 0 0 40px var(--accent);
}

.moveUpY {
  transition: transform 0.1s ease-out;
}
.moveUpY:hover {
  transform: translateY(-10px) scale(1) !important;
}
/* Add to your existing CSS */
[data-dropdown-toggle] {
  cursor: pointer;
}

.dropdown {
  pointer-events: none;
}

.dropdown.show {
  pointer-events: auto;
}

.glassy-primary {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--primary) 90%, transparent) 0%,
    color-mix(in srgb, var(--primary) 70%, transparent) 60%,
    transparent 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s ease, transform 0.3s ease;
}

.glassy-accent {
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--accent) 90%, transparent) 0%,
    color-mix(in srgb, var(--accent) 70%, transparent) 60%,
    transparent 100%
  );
  backdrop-filter: blur(6px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes dropdownFade {
  0% {
    opacity: 0;
    transform: translateY(-2.5rem); /* moved from -1rem to -2.5rem */
  }
  100% {
    opacity: 1;
    transform: translateY(0.75rem); /* adds a subtle downward finish */
    margin-top: 4rem;
  }
}

.dropdown {
  display: none; /* start hidden */
}

.dropdown.show {
  display: block;
  animation: dropdownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Closing animation class (for a graceful close) */
.dropdown.closing {
  animation: dropdownFadeReverse 200ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes dropdownFadeReverse {
  0% {
    opacity: 1;
    transform: translateY(0.75rem); /* adds a subtle downward finish */
    margin-top: 2.5rem;
  }

  100% {
    opacity: 0;
    transform: translateY(-2.5rem); /* moved from -1rem to -2.5rem */
  }
}

/* 
  =========================================
          HELPER CLASSES ENDS
  =========================================
*/

.main-nav-link {
  /* Default text color is primary */
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600 !important;
  transition: all 0.2s ease-in-out;
  position: relative;
}

/* Hover effect for text color and border color */
.main-nav-link:hover {
  color: var(--accent);
}

/* Custom border bottom on hover for main links only */
.main-nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: -8px; /* Adjust to sit below padding */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
}

/* Sublink hover color (only text color change, no border) */
.sublink-item:hover {
  color: var(--accent) !important;
  background-color: var(
    --background
  ); /* Use a light background for hover effect */
}

/* Utility to hide the dropdown by default, controlled by JS */
#mega-menu-full-dropdown {
  display: none;
}

#mega-menu-full-dropdown.active {
  display: block;
}

.mega-menu-dropdown {
  display: none;
  transition: all 0.25s ease-in-out;
}

.mega-menu-dropdown.active {
  display: block;
}

header nav {
  position: relative;
  z-index: 50;
}

.mega-menu-dropdown {
  z-index: 40;
}

/* Ensure responsive font for the span */
.logo-text {
  font-size: 1.25rem; /* Default size */
}

@media (min-width: 768px) {
  .logo-text {
    font-size: 1.5rem; /* Larger on desktop */
  }
}

/* Custom styles for the Login button */
.login-button {
  position: relative;
  overflow: hidden; /* Important for the slide effect */
  background-color: transparent !important; /* Start with transparent background */
  border: 2px solid var(--primary); /* Primary color border */
  color: var(--primary); /* Primary color text by default */
  transition: color 0.3s ease-in-out; /* Smooth text color change */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
  font-size: 0.875rem; /* Tailwind's text-sm */
  font-weight: 500 !important; /* Tailwind's font-medium */
  z-index: 0; /* ✅ Add this */
}

.login-button .svg-icon {
  margin-left: 0.5rem; /* Space between text and icon */
  width: 1em; /* Make icon scale with font size */
  height: 1em;
  stroke-width: 2; /* Consistent stroke width */
  transition: stroke 0.3s ease-in-out; /* Smooth icon color change */
}

/* Overlay for the slide-in hover effect */
.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen to the left */
  width: 100%;
  height: 100%;
  border-color: var(--white);
  background-color: var(--primary); /* Accent color for the slide-in */
  transition: left 0.3s ease-in-out; /* Smooth slide transition */
  z-index: -1; /* Place behind text and icon */
}

/* On hover, slide the accent background in */
.login-button:hover::before {
  left: 0;
}

/* On hover, change text and icon color to white */
.login-button:hover {
  color: white !important;
}

.login-button:hover .svg-icon {
  stroke: white; /* Change icon color to white on hover */
}

/* Custom styles for the SignUP button */
.signup-button {
  position: relative;
  overflow: hidden; /* Important for the slide effect */
  background-color: transparent !important; /* Start with transparent background */
  border: 2px solid var(--accent); /* Primary color border */
  color: var(--accent); /* Primary color text by default */
  transition: color 0.3s ease-in-out; /* Smooth text color change */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
  font-size: 0.875rem; /* Tailwind's text-sm */
  font-weight: 500 !important; /* Tailwind's font-medium */
  z-index: 0; /* ✅ Add this */
}

.signup-button .svg-icon {
  margin-left: 0.5rem; /* Space between text and icon */
  width: 1em; /* Make icon scale with font size */
  height: 1em;
  stroke-width: 2; /* Consistent stroke width */
  transition: stroke 0.3s ease-in-out; /* Smooth icon color change */
}

/* Overlay for the slide-in hover effect */
.signup-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen to the left */
  width: 100%;
  height: 100%;
  border-color: var(--white);
  background-color: var(--accent); /* Accent color for the slide-in */
  transition: left 0.3s ease-in-out; /* Smooth slide transition */
  z-index: -1; /* Place behind text and icon */
}

/* On hover, slide the accent background in */
.signup-button:hover::before {
  left: 0;
}

/* On hover, change text and icon color to white */
.signup-button:hover {
  color: white !important;
  border: 2px solid var(--accent); /* Primary color border */
}

.signup-button:hover .svg-icon {
  stroke: white; /* Change icon color to white on hover */
}

/* Custom styles for the Login button without the background Hero Section */
.login-buttonBg {
  position: relative;
  overflow: hidden; /* Important for the slide effect */
  background-color: transparent !important; /* Start with transparent background */
  border: 2px solid var(--white); /* Primary color border */
  color: var(--white); /* Primary color text by default */
  transition: color 0.3s ease-in-out; /* Smooth text color change */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
  font-size: 0.875rem; /* Tailwind's text-sm */
  font-weight: 500 !important; /* Tailwind's font-medium */
  z-index: 0; /* ✅ Add this */
}

.login-buttonBg .svg-icon {
  margin-left: 0.5rem; /* Space between text and icon */
  width: 1em; /* Make icon scale with font size */
  height: 1em;
  stroke-width: 2; /* Consistent stroke width */
  transition: stroke 0.3s ease-in-out; /* Smooth icon color change */
}

/* Overlay for the slide-in hover effect */
.login-buttonBg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen to the left */
  width: 100%;
  height: 100%;
  background-color: var(--primary); /* Accent color for the slide-in */
  transition: left 0.3s ease-in-out; /* Smooth slide transition */
  z-index: -1; /* Place behind text and icon */
}

/* On hover, slide the accent background in */
.login-buttonBg:hover::before {
  left: 0;
}

/* On hover, change text and icon color to white */
.login-buttonBg:hover {
  color: white !important;
}

.login-buttonBg:hover .svg-icon {
  stroke: white; /* Change icon color to white on hover */
}

/* Custom styles for the SignUP button */
.signup-buttonBg {
  position: relative;
  overflow: hidden; /* Important for the slide effect */
  background-color: transparent !important; /* Start with transparent background */
  border: 2px solid var(--white); /* Primary color border */
  color: var(--white); /* Primary color text by default */
  transition: color 0.3s ease-in-out; /* Smooth text color change */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem; /* Tailwind's px-4 py-2 */
  font-size: 0.875rem; /* Tailwind's text-sm */
  font-weight: 500 !important; /* Tailwind's font-medium */
  z-index: 0; /* ✅ Add this */
}

.signup-buttonBg .svg-icon {
  margin-left: 0.5rem; /* Space between text and icon */
  width: 1em; /* Make icon scale with font size */
  height: 1em;
  stroke-width: 2; /* Consistent stroke width */
  transition: stroke 0.3s ease-in-out; /* Smooth icon color change */
}

/* Overlay for the slide-in hover effect */
.signup-buttonBg::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%; /* Start off-screen to the left */
  width: 100%;
  height: 100%;
  background-color: var(--accent); /* Accent color for the slide-in */
  transition: left 0.3s ease-in-out; /* Smooth slide transition */
  z-index: -1; /* Place behind text and icon */
}

/* On hover, slide the accent background in */
.signup-buttonBg:hover::before {
  left: 0;
}

/* On hover, change text and icon color to white */
.signup-buttonBg:hover {
  color: white !important;
  border: 2px solid var(--white); /* Primary color border */
}

.signup-buttonBg:hover .svg-icon {
  stroke: white; /* Change icon color to white on hover */
}
/* For the bottom banner */
.amfi-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary); /* Uses your primary brand color */
  color: white;
  text-align: center;
  font-size: 0.875rem; /* Slightly smaller text for professionalism */
  font-weight: 500;
  padding: 0.5rem 1rem;
  letter-spacing: 0.5px;
  z-index: 50; /* Ensures it sits above most elements */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease, padding 250ms ease;
  padding-top: 0;
  opacity: 0;
}

/* When open */
.faq-item.open .faq-answer {
  max-height: 600px; /* you can increase this if longer text */
  padding-top: 0.75rem;
  opacity: 1;
}

/* Rotate plus icon when open */
.faq-item .faq-icon svg {
  transform-origin: center;
  transition: transform 300ms ease;
}
.faq-item.open .faq-icon svg {
  transform: rotate(45deg);
}

/* Prevent FAQ items from stretching to same height */
.faq-item {
  align-self: flex-start;
}

.counter {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.counter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 
  =========================================
         LEGACY CSS - TO BE REFACTORED
  =========================================
*/

.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

html {
  font-size: 100%;
} /* 16px */

.moveUpY {
  transition: transform 0.3s ease;
}
.moveUpY:hover {
  transform: translateY(-5px);
}

/* Loader Begins */
/* Loader underline animation 
.logo-path {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: draw-loop 3s linear infinite;
}

@keyframes draw-loop {
  0% {
    stroke-dashoffset: 3000;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 3000;
  }
}


@keyframes draw-final {
  to {
    stroke-dashoffset: 0;
  }
}

/* Loader Ends */

.social-widget {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 0) + 16px);
  right: max(24px, env(safe-area-inset-right, 0) + 16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1000;
}

.social-main {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #333;
  color: white;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  touch-action: manipulation;
}

.social-main.active {
  transform: rotate(45deg);
}

/* Icons container (hidden by default) */
.social-icons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

/* SHOW on CLICK (class toggled by JS) */
.social-widget.open .social-icons {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* SHOW on HOVER (desktop pointers only) */
@media (hover: hover) and (pointer: fine) {
  .social-widget:hover .social-icons {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .social-widget:hover .social-main {
    transform: rotate(45deg);
  }
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-icon:hover {
  transform: scale(1.25);
}

.facebook {
  background-color: #1877f2;
}
.whatsapp {
  background-color: #25d366;
}
.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}
.linkedin {
  background-color: #0077b5;
}
.twitter {
  background-color: #000;
}
.youtube {
  background-color: red;
}

.text-custom-maroon {
  color: var(--secondary);
}

.riskprofiler {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem; /* Adjust padding for smaller screens */
  background-color: #f7f7f7;
}

.socialMediaNav {
  position: fixed;
  width: 50px;
  margin-top: 50px;
  transition: all 0.3s linear;
  box-shadow: 2px 2px 8px 0px rgba(0, 0, 0, 0.4);
  bottom: 4rem;
  z-index: 100000;
}
.socialMediaNav li {
  height: 60px;
  position: relative;
}
.socialMediaNav li a {
  color: white;
  display: block;
  height: 100%;
  width: 100%;
  line-height: 60px;
  padding-left: 15%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  transition: all 0.3s linear;
}
.socialMediaNav li:nth-child(1) a {
  background: #2867b2;
}

.socialMediaNav li:nth-child(2) a {
  background: red;
}

.socialMediaNav li a i {
  position: absolute;
  top: 17px;
  font-size: 27px;
}
.socialMediaNav ul li a span {
  display: none;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.socialMediaNav a:hover {
  z-index: 1000;
  width: 200px;
}
.socialMediaNav ul li:hover a span {
  padding-left: 30%;
  display: block;
}

.whatsapp-icon {
  padding-left: 5px;
  width: 2.5rem;
}

/* Whatsapp Button */
.whatsapp-btn {
  color: #111b9e;
  background-color: #e1f1f7;
  font-weight: 700;
  font-size: 1.25rem;
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 3000;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
}

.whatsapp-btn .connect2 {
  font-size: 1.5rem;
  font-weight: 700;
  padding-right: 10px;
  background-color: #e1f1f7;
  opacity: 1;
}
.whatsapp-icon {
  width: 3.25rem;
  fill: #25d366;
  background-color: #e1f1f7;
}

.riskprofiler-content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  width: 100%; /* Full width for small screens */
  max-width: 80%; /* Restrict width on larger screens */
  height: 100vh; /* Allow height to adjust based on content */
  padding: 2rem; /* Add padding for spacing */
  background-image: url(/images/riskprofierhero.png);
  background-size: cover; /* Ensure the image scales properly */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
}

.team-members-box {
  margin-top: -2.5%;
}

.containerInsurance {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  margin: 0% auto;
  padding: 0;
}

.text-box {
  width: 80%;
  font-weight: 400;
  font-size: 1.125rem;
  text-align: justify;
}

#policyText p {
  margin: 1.75rem 0;
}

#faqText p {
  margin: 1.15rem 0;
}

.carousel-button {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  background-color: var(--primary);
  /* background-color: rgba(0, 0, 0, 0.7); Semi-transparent background */
  transition: all 0.1s ease;
}

.carousel-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--primary);
}

.carousel-button.secondary {
  color: #fff;
  background-color: transparent;
  border: 2px solid var(--secondary); /* Border color */
  box-shadow: 0 0 0 transparent; /* No shadow */
  transition: all 0.1s ease;
}

.carousel-button.secondary:hover {
  transform: translateY(-5px);
  background-color: var(--secondary);
  border: 2px solid white; /* Border color */
  box-shadow: 0 10px 30px var(--secondary);
}

#modalBtn {
  position: absolute;
  margin-top: -5rem;
  z-index: -1;
}

@media (max-width: 1200px) {
  .riskprofiler-content {
    max-width: 100%;
  }
}

@media (max-width: 1000px) {
  .riskprofiler-content {
    padding: 1rem;
  }
}

.journey {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  margin: 2rem 0;
}

figure {
  box-shadow: 0px 4px 22px 0px rgba(0, 0, 0, 0.05);
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #e5e5e5;
}

.testimonial h2 {
  padding: 2rem 0;
}

.whatwedo {
  padding: 0;
}

.whatwedoimg {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 75%;
}

.portfolioForecast {
  margin: 1% 22.5%;
}

.riskProfileHeight {
  margin-top: -3%;
}

.subscribe {
  padding: 2rem 0;
  margin: 2rem 0;
}

.animate-slide-in {
  opacity: 0;
  transform: translate(50px, -50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-slide-in.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.animate-slide-in2 {
  opacity: 0;
  transform: translate(-50px, -50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.animate-slide-in2.visible {
  opacity: 1;
  transform: translate(0, 0);
}

#imageAbt {
  margin-left: 12.5%;
}

.my-custom-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  cursor: pointer; /* optional */
  border: 3px solid #7ca638;
}

.my-custom-card:hover {
  background-color: #020063 !important;
  box-shadow: 0 0 40px #0200639f !important;
  border: 3px solid #fff;
}

/* Target the <p> inside when parent is hovered */
.my-custom-card:hover p {
  color: white !important;
}

/* Default p style */
.my-custom-card p {
  color: #020063;
  font-weight: 600; /* font-semibold */
  transition: color 0.3s ease;
}

/* heropage */

heading {
  font-size: 2.5rem;
}

.our-team .team-content {
  width: 100%;
  height: auto;
  background: #323232;
  padding: 27px 0;
  border-left: 5px solid #3cb5d3;
  border-right: 5px solid #3cb5d3;
  box-shadow: 0 15px 25px 0 rgba(3, 7, 15, 0.1);
  position: absolute;
  bottom: 0;
  right: 0;
  transition: all 0.5s ease 0s;
}

.aboutStatement {
  margin-top: 1%;
}

.galleryImg {
  height: 300px;
  width: 300px;
}

.flexGallery {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: 2rem 0;
}

.flexGallery img {
  height: 200px;
  width: 300px;
}

.formWidth {
  width: 55rem;
}

.formDiv {
  margin-left: 15%;
}

.mobileWidth {
  width: 50%;
}

#outputTbl {
  margin: 1rem 3rem;
}

.formPoint {
  margin: 2rem 0 0 8%;
}

.buttonPush {
  margin-top: 1.75rem;
}

.dropdownSearch {
  width: 400%;
}

#tooltip {
  position: relative;
  cursor: pointer;
}

#tooltipText {
  position: absolute;
  left: 50%;
  top: -50px; /* Adjust based on your preference */
  transform: translateX(-50%);
  background-color: #000;
  color: #fff;
  white-space: nowrap; /* Allows text to wrap naturally */
  padding: 10px 15px;
  border-radius: 7px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 100; /* Ensure it's on top of other elements */
}

#tooltipText::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #000;
}

#tooltip:hover #tooltipText {
  visibility: visible;
  opacity: 1;
}

.flexContact {
  display: flex;
  flex-direction: row;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    /* or scale: 0; */
  }
  100% {
    opacity: 1;
    /* or scale: 1; */
  }
}

.fade-in {
  animation: fadeIn 2s ease-in-out;
}

@keyframes slideInRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-right {
  animation: slideInRight 2s ease-in-out forwards;
}

@keyframes slideInLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.slide-in-left {
  animation: slideInLeft 2s ease-in-out forwards;
}

.marquee {
  display: flex;
  block-size: 150px;
  margin-block: var(--marquee-item-height);
  position: relative;
  overflow-x: hidden;
  mask-image: linear-gradient(
    to right,
    hsl(0 0% 0% / 0),
    hsl(0 0% 0% / 1) 20%,
    hsl(0 0% 0% / 1) 80%,
    hsl(0 0% 0% / 0)
  );
}

.marquee--8 {
  --marquee-item-width: 100px;
  --marquee-item-height: 10px;
  --marquee-duration: 36s;
  --marquee-items: 8;
}

.marquee--3 {
  --marquee-item-width: 150px;
  --marquee-item-height: 150px;
  --marquee-duration: 24s;
  --marquee-items: 3;
}

.marquee--6 {
  --marquee-item-width: 166px;
  --marquee-item-height: 100px;
  --marquee-duration: 32s;
  --marquee-items: 6;
}

.marquee__item {
  --marquee-item-offset: max(
    calc(var(--marquee-item-width) * var(--marquee-items)),
    calc(100% + var(--marquee-item-width))
  );
  --marquee-delay: calc(
    var(--marquee-duration) / var(--marquee-items) *
      (var(--marquee-items) - var(--marquee-item-index)) * -1
  );
  position: absolute;
  inset-inline-start: var(--marquee-item-offset);
  transform: translateX(-50%);
  animation: go linear var(--marquee-duration) var(--marquee-delay, 0s) infinite;
}

.marquee__item:nth-child(4n) {
  border-top-right-radius: 1rem;
}

.marquee__item:nth-child(4n + 1) {
  border-bottom-right-radius: 1rem;
}

.marquee__item:nth-child(4n + 2) {
  border-bottom-left-radius: 1rem;
}

.marquee__item:nth-child(4n + 3) {
  border-top-left-radius: 1rem;
}

.marquee--8 .marquee__item:nth-of-type(1) {
  --marquee-item-index: 1;
}

.marquee--8 .marquee__item:nth-of-type(2) {
  --marquee-item-index: 2;
}

.marquee--8 .marquee__item:nth-of-type(3) {
  --marquee-item-index: 3;
}

.marquee--8 .marquee__item:nth-of-type(4) {
  --marquee-item-index: 4;
}

.marquee--8 .marquee__item:nth-of-type(5) {
  --marquee-item-index: 5;
}

.marquee--8 .marquee__item:nth-of-type(6) {
  --marquee-item-index: 6;
}

.marquee--8 .marquee__item:nth-of-type(7) {
  --marquee-item-index: 7;
}

.marquee--8 .marquee__item:nth-of-type(8) {
  --marquee-item-index: 8;
}

.marquee--3 .marquee__item:nth-of-type(1) {
  --marquee-item-index: 1;
}

.marquee--3 .marquee__item:nth-of-type(2) {
  --marquee-item-index: 2;
}

.marquee--3 .marquee__item:nth-of-type(3) {
  --marquee-item-index: 3;
}

.marquee--6 .marquee__item:nth-of-type(1) {
  --marquee-item-index: 1;
}

.marquee--6 .marquee__item:nth-of-type(2) {
  --marquee-item-index: 2;
}

.marquee--6 .marquee__item:nth-of-type(3) {
  --marquee-item-index: 3;
}

.marquee--6 .marquee__item:nth-of-type(4) {
  --marquee-item-index: 4;
}

.marquee--6 .marquee__item:nth-of-type(5) {
  --marquee-item-index: 5;
}

.marquee--6 .marquee__item:nth-of-type(6) {
  --marquee-item-index: 6;
}

@keyframes go {
  to {
    inset-inline-start: calc(var(--marquee-item-width) * -1);
  }
}

.position-image-right {
  justify-self: end;
}

.position-image-left {
  justify-self: start;
}

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin-top: 3rem;
  margin: 0 1.5rem;
}

.row2 {
  margin-top: 2rem !important;
}

#knowledgePartner {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  margin: 1.5rem;
}

#knowledgePartner div {
  margin: 0 4rem;
}

#knowledgePartner img {
  width: 250px;
  height: 100px;
}

.marquee--8 {
  --marquee-item-width: 200px;
}

.planningImg {
  height: 24rem;
  margin-left: -2rem;
  margin-top: 1rem;
}

.labelMargin {
  margin-left: -10%;
}

.fiveLabelMargin {
  margin-left: -5%;
}

/* For the Our Products in index.html */

.explore-product {
  display: flex; /* Use Flexbox for alignment */
  align-items: center; /* Vertically center the items */
  text-decoration: none; /* Remove underline from the link */
  color: white;
  background-color: rgb(26, 86, 219);
  width: fit-content; /* Inherit color from parent element */
  padding: 10px; /* Add padding if needed */
  transition: all 1s ease;
  border-radius: 2px;
}

.explore-product:hover {
  background-color: white;
  color: rgb(26, 86, 219);
  border: 2px solid rgb(26, 86, 219);
  border-radius: 12px;
}

.material-symbols-outlined {
  margin-left: 5px; /* Add space between text and icon */
}

.color {
  background-image: linear-gradient(to bottom right, #1a68c7, #97bbe6);
  color: white;
  padding: 0.7rem;
  margin-right: 0.5rem;
  border-radius: 100%;
  font-size: 2rem !important;
}
.illustration {
  display: flex; /* Create a flex container */
  justify-content: space-between; /* Space out the columns evenly */
  margin: 2rem 0;
}

.illustration > div {
  flex-direction: row;
  flex-grow: 1;
  margin: 0 10px; /* Add some margin between columns */
}

.col-obj {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
}

.col-obj p {
  display: flex; /* Use flexbox to align items inside <p> */
  align-items: center; /* Center align items vertically */
  justify-content: start;
  text-align: center;
  margin: 1rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  width: 100%;
}

.hidden-element {
  position: absolute;
  left: -9999px; /* Moves it out of view */
}

.gridCols1 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Password Protection */

#content {
  display: none;
}

/* Fullscreen overlay */
#password-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Centered container for password prompt */
.password-container {
  text-align: center;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.password-container input {
  padding: 10px;
  margin: 10px 0;
  width: 80%;
  border: none;
  border-radius: 5px;
}

#password-input {
  color: black;
}

.password-container button {
  padding: 10px 20px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.password-container button:hover {
  background: #45a049;
}

#error-message {
  color: red;
  font-size: 14px;
}

/* End */
@media screen and (max-width: 1023px) {
  .dropdownSearch {
    width: 120%;
  }
}

@media screen and (max-width: 880px) {
  .formWidth {
    width: 50rem;
  }

  .buttonPush {
    margin-top: 1.25rem;
  }
}

@media screen and (max-width: 800px) {
  .formWidth {
    width: 47rem;
  }
}

@media screen and (max-width: 768px) {
  .flexContact {
    flex-direction: column;
  }

  .labelMargin {
    margin-left: 0 !important;
  }

  .fiveLabelMargin {
    margin: 0 !important;
  }

  .gridMobile {
    margin: 0 5%;
  }

  .flexMobile {
    display: flex;
    flex-direction: column !important;
    text-align: center;
    align-items: center;
  }

  .formDiv {
    margin-left: 0%;
  }

  .formWidth {
    width: 80%;
  }

  .formPoint {
    margin: 10%;
  }

  .mobile-top {
    margin-top: 0.5rem;
  }

  .flexMobile div {
    margin: 1rem 0;
  }

  .aboutStatement {
    text-align: center;
    align-items: center;
    margin-top: 2rem;
  }

  .flexGallery {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .flexGallery img {
    margin: 1rem 0;
  }

  .mobileService {
    margin-top: 2rem;
  }

  .mobileService h2 {
    text-align: center;
  }

  .mobileService p {
    text-align: center;
  }

  .mobileReverse {
    display: flex;
    flex-direction: column-reverse;
  }

  .position-image {
    justify-self: center !important;
  }

  .row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .row iframe {
    margin: 1rem 0;
  }

  #knowledgePartner {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 1.5rem;
  }

  #knowledgePartner div {
    margin: 1rem auto;
  }

  #knowledgePartner img {
    width: 50%;
    height: 50%;
    margin: 0 auto;
  }

  .row div {
    margin: 1rem 0;
  }

  #mobileDown span {
    display: block;
    margin-top: 0.5rem;
    text-align: center;
  }

  #mobileDown > div {
    justify-content: center;
    align-items: center;
  }

  .planningImg {
    display: none;
  }

  .mobileDiv {
    display: block !important;
  }
  .mobileWidth {
    width: 100%;
  }

  .mobileHidden {
    display: none;
  }

  .color {
    background-image: linear-gradient(to bottom right, #1a68c7, #97bbe6);
    color: white;
    padding: 0.5rem;
    margin-right: 0.1rem;
    border-radius: 100%;
    font-size: 2rem !important;
  }

  .col-obj {
    justify-content: space-between !important;
    margin: 10px 0;
  }

  .col-obj p {
    justify-content: center;
    margin: 1rem 0;
    font-size: 0.6rem;
    font-weight: 700;
    width: 100%;
  }

  .illustration {
    margin-left: -7.5%;
  }

  .illustration > div {
    flex-direction: row;
    flex-grow: 1;
    margin: 0 4px; /* Add some margin between columns */
  }

  .mobileContainer {
    margin: 0 5%;
  }

  #productImg {
    display: none;
  }

  .formMargin {
    margin: 2.5rem 5%;
  }

  .navSectionMobile {
    width: 100%;
  }

  #researchSelectBtnPanel {
    flex-direction: column;
  }

  #imageAbt {
    margin-left: 0% !important;
  }

  .portfolioForecast {
    margin: 1% 1%;
  }

  .whatwedoimg {
    display: none;
  }

  .gridCols1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
