@import url('../../assets-custom/root.css');

/* Universal Styles */
.max-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.header-row-container {
  max-width: 1255px;
}

.home-container {
  display: flex;
  flex-direction: column;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px;
}

.intercom-messenger-frame {
  max-width: 100vw;
  max-height: 100vh;
  width: auto !important;
  height: auto !important;
  overflow: hidden;
  box-sizing: border-box;
}

.intercom-launcher-frame {
  bottom: 20px !important;
  right: 20px !important;
}

/* Banner Section */
.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  background-image: url('../../assets-custom/img/banner/banner.png');
  background-repeat: no-repeat;
  background-size: cover;
  height: 678px;
  align-items: self-start;
  place-content: end;
}

.banner-txt-btn-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--ea-primary-color);
  padding-inline: 65px;
  padding-block: 40px;
  max-width: 780px;
}

.banner-title {
  font-family: var(--title-font);
  color: var(--text-color);
  font-size: 40px;
  font-weight: 500;
  line-height: 59.99px;
}

.banner-subtitle {
  font-family: var(--subtitle-paragraph-font);
  color: var(--text-color);
  font-size: 18px;
  font-weight: 300;
  line-height: 27px;
  text-align: center;
}

.read-more-btn {
  width: 137px;
  height: 44px;
  border: 1px solid var(--other-btn-border-color);
}

/* Feature Section */

.feature-container {
  display: flex;
  justify-content: space-around;
  margin-inline: auto;
  padding: 20px;
  gap: 20px;
  border-bottom: 1px solid var(--ea-primary-color-faded);
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.left-feature-part {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 80px;
  margin-bottom: 120px;
  flex: 1; /* Allow flexible resizing */
}

.right-feature-part {
  margin-top: 80px;
  margin-bottom: 120px;
  flex: 1; /* Allow flexible resizing */
  max-width: 480px;
}

.feature-divider {
  width: 1px;
  background-color: var(--ea-primary-color-faded);
  align-self: stretch; /* Ensure full height divider */
}

.feature-small-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add subtle shadow */
}

.feature-icon-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-title {
  font-family: var(--title-font);
  color: var(--text-color-2nd);
  font-size: 22px;
  font-weight: 700;
  line-height: 29.33px;
  margin-top: 15px;
}

.feature-paragraph {
  font-family: var(--subtitle-paragraph-font);
  color: var(--text-color-2nd);
  font-size: 17px;
  font-weight: 300;
  line-height: 26px;
}

/* Discover Section */

.discover-container {
  margin-block: 200px;
  margin-inline: 120px;
}

.discover-row {
  display: flex;
  align-items: center;
  height: 400px;
}

.discover-img {
  height: 100%;
  width: 50%;
  object-fit: cover;
}

.discover-small-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--ea-primary-color);
  height: 100%;
  padding-block: 120px;
  width: 50%;
}

.discover-title {
  color: var(--text-color);
  font-family: var(--title-font);
  text-align: center;
}

.discover-paragraph {
  max-width: 500px;
  margin-bottom: 40px;
  margin-inline: 50px;
  color: var(--text-color);
  font-family: var(--subtitle-paragraph-font);
}

.discover-top-right-img {
  margin-bottom: 40px;
}

.discover-btn {
  height: 48px;
  width: 164px;
  border: 1px solid var(--other-btn-border-color);
}

/* Responsive Adjustments */

/* Banner Responsiveness */
@media (max-width: 991px) {
  .banner {
    background-size: contain;
  }

  .banner-title {
    text-align: center;
    font-size: 35px;
  }

  .banner-subtitle {
    font-size: 17px;
  }
}

/* Feature Section Responsiveness */
@media (max-width: 991px) {
  .feature-container {
    flex-direction: column; /* Stack the content vertically */
    align-items: center;
  }

  .feature-divider {
    display: none; /* Hide the divider on smaller screens */
  }

  .left-feature-part {
    flex: unset; /* Remove flex constraints */
    width: 100%; /* Full width on small screens */
  }

  .right-feature-part {
    width: 100%; /* Full width on small screens */
    margin-top: 20px;
  }

  .feature-small-container {
    width: 100%; /* Full width for feature containers */
    padding: 15px;
  }

  .feature-title {
    font-size: 20px;
  }

  .feature-paragraph {
    font-size: 14px;
  }
}

@media (max-width: 450px) {
  .feature-title {
    font-size: 18px;
  }

  .feature-paragraph {
    font-size: 12px;
    line-height: 18px;
  }

  .discover-container {
    position: relative;
  }

  .discover-row {
    flex-direction: column;
    height: auto;
  }

  .discover-small-container {
    flex-direction: column;
    padding-block: 45px;
    min-width: 90vw;
  }

  .discover-img {
    min-width: 90vw;
  }

  .discover-paragraph {
    font-size: 14px;
    margin-inline: 15px;
    width: 90%;
  }
}
