/* Same critical CSS as before, but fonts now parallel-loaded */
@font-face {
  font-family: "Poppins";
  src: url(./public/Poppins/Poppins-Regular.ttf) format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

@font-face {
  font-family: "Poppins";
  src: url(./public/Poppins/Poppins-Medium.ttf) format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
body {
  background-color: #f7faff;
  background-color: white;
}
.container {
  max-width: 1250px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}
nav {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img {
  width: 220px;
}
.links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  align-items: center;
  font-size: 16px;
  cursor: pointer;
}

.actionBtn,
.ctaButtons a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  background-color: #4c70bb;
  border: 2px solid #4c70bb;
  color: #fff;
  fill: white;
  width: fit-content;
  cursor: pointer;
}
.actionBtn:hover,
.ctaButtons a:hover,
.ctaButtons a:first-child:hover {
  background-color: #4ca8bb;
  border: 2px solid #4ca8bb;
  color: white;
  fill: white;
  transition: all 0.3s ease;
  scale: 1.02;
}
.bar,
.active {
  display: none;
}

/* Hero */
.hero {
  padding-top: 2rem;
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}
.hero .right {
  max-width: 500px;
  width: 100%;
}
.hero .right img {
  display: block;
  width: 100%;
  border-radius: 5px;
  outline: 1px solid #e9e9e9;
}
.hero .left h2 {
  font-size: 28px;
}
.left p {
  margin: 1rem 0;
  display: block;
}
.left p span {
  text-decoration: underline;
  text-underline-position: under;
}
.ctaButtons {
  display: flex;
  gap: 1rem;
}
.ctaButtons a {
  font-weight: 600;
  font-size: 14px;
}

.ctaButtons a:first-child {
  background-color: #fff;
  color: #000;
  border-color: #4c70bb;
  fill: black;
}

/* Insurance logos */

.insurance,
.review,
.steps,
.books,
.whyUs {
  margin: 5rem 0;
}
.insurance h3,
.review h3,
.steps h3,
.books h3,
.whyUs h3 {
  font-weight: 500;
  font-size: min(1.5rem, calc(1vw + 0.9rem));
  background-color: #4ca8bb;
  color: white;
  padding: 0.5rem 1.5rem;
  width: fit-content;
  text-align: center;
  margin: 0 auto;
}

.insuranceLogos,
.insuranceLogos2 {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-around;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.insuranceLogos2 {
  gap: 1.5rem;
}
.insuranceLogos2 img {
  /* width: 100px; */
  height: 100px;
}
video {
  max-width: fit-content;
  width: 100%;
  border-radius: 10px;
}
.video-container {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(4, 51, 194, 0.7);
  border-radius: 50%;
  pointer-events: none; /* CRITICAL: Allows clicks to pass through to the video */
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Create the triangle with CSS (No image needed) */
.play-button::after {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent white;
}

/* Hide the button when the 'playing' class is present */
.video-container.playing .play-button {
  opacity: 0;
}
/* reviews */

/* reviews */
.reviewContainer {
  padding: 2rem 0 0;
  display: flex;
  gap: 1rem;
  width: 100%;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: space-between;
}
.reviewCard {
  display: flex;
  flex-direction: column;
  max-width: calc(33% - 0.5rem);
  background-color: #f3f3f3;
  color: black;
  padding: 2rem;
  transition: all 0.3s ease;
  outline: 1px solid #e9e9e9;
  border-radius: 7px;
}
.reviewCard:hover {
  scale: 1.02;
}
.reviewInfo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
}
.reviewInfo p {
  padding-bottom: 10px;
}
.reviewCard img {
  width: 50px;
}
.reviewCard svg {
  max-width: 90px;
  width: 100%;
}
.reviewCard a {
  color: #4c70bb;
  border-bottom: 1px solid #4c70bb;
  width: fit-content;
  margin-top: 0.5rem;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.reviewCard a:hover {
  color: white;
  background-color: #4c70bb;
}
.reviewHeadInfo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.reviewHeadInfo img {
  width: 100px;
}

.reviewHeadInfo h2 {
  font-size: 20px;
  text-align: center;
}
.reviewInfoTopRight {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
/* steps */
.stepsContainer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 2rem;
  flex-wrap: wrap;
}
.stepCard {
  outline: 1px solid #e9e9e9;
  width: calc(33% - 0.85rem);
  background-color: #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.stepCard img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  height: 270px;
}

.stepCard h4 {
  color: #4c70bb;
}
.stepCard h5 {
  font-size: 18px;
}
.stepCard h4,
.stepCard h5 {
  text-align: center;
}
.stepCardOverlay {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
}
.stepCard:hover {
  transform: translateY(-5px);
}
.booksContainer {
  align-items: center;
  justify-content: center;
  gap: 2rem;
  display: flex;
  padding-top: 2rem;
  flex-wrap: wrap;
}
.booksContainer img {
  max-width: 350px;
  width: 100%;
  height: 500px;
  border: 1px solid #d0d0d0;
}
.books p {
  text-align: center;
  padding-top: 0.5rem;
}
.book {
  display: flex;
  flex-direction: column-reverse;
  transition: all 0.3s ease;
  cursor: pointer;
}
.book:hover {
  scale: 1.03;
}
.book a {
  background-color: #4c70bb;
  color: white;
  text-align: center;
  padding: 5px 1rem;
  margin-bottom: -1px;
  z-index: 9;
  width: fit-content;
}
/* doc banner */

.docBanner {
  display: flex;
  background-color: #f3f3f3;
  width: 100%;
  margin: 3rem auto 0;
  outline: 1px solid #e9e9e9;
  align-items: center;
  border-radius: 5px;
}
.docBanner h3 {
  font-size: 24px;
}
.docBanner img {
  max-width: 400px;
  width: 100%;
  object-fit: cover;
  flex: 0.5;
  height: 100%;
  padding-left: 1.5rem;
}
.docBanner .right {
  flex: 1;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
footer {
  padding: 2rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: -5px;
}
.container2 {
  background-color: #e9f6ff;
}
.whyUs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.whyUs .actionBtn {
  margin: 0 auto;
}
.whyUs h4 {
  font-size: min(1.5rem, calc(1vw + 0.9rem));
  font-weight: 500;
  text-wrap: balance;
}
/* Media queries */
@media screen and (max-width: 1000px) {
  .bar {
    display: block;
  }
  .links {
    display: none;
  }
}

@media screen and (max-width: 1200px) {
  .hero .left h2 {
    font-size: calc(1vw + 0.8rem);
  }
}

@media screen and (max-width: 1080px) {
  .container {
    padding: 0 2rem;
  }
  .hero {
    flex-direction: column-reverse;
  }
  .docBanner {
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
  }
  .docBanner img {
    padding: 0;
  }
  .docBanner .right {
    padding: 1.5rem;
  }
}
@media screen and (max-width: 1040px) {
  .reviewCard {
    max-width: calc(50% - 0.5rem);
  }
  .stepCard {
    width: calc(50% - 0.85rem);
  }
}
@media screen and (max-width: 770px) {
  .reviewCard {
    max-width: 100%;
    width: 100%;
  }
  .stepCard {
    width: 100%;
  }
  .reviewHeadInfo {
    flex-direction: column;
  }
}
@media screen and (max-width: 630px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero {
    gap: 1.5rem;
    padding-top: 0;
  }
  .hero .right {
    max-width: 100%;
    width: 100%;
  }
  .ctaButtons {
    flex-direction: column;
  }
  .ctaButtons a {
    width: 100%;
    justify-content: center;
  }
}
@media screen and (max-width: 500px) {
  .insurance,
  .review,
  .steps,
  .books,
  .whyUs {
    margin: 3rem 0;
  }
  .docBanner {
    padding-top: 0;
  }
}
