/* style/resources-new88-today-advantages.css */
/* 
  Body background color from shared.css: #1a1a2e (dark)
  Therefore, text color should be light, e.g., #ffffff or #f0f0f0
*/

.page-resources-new88-today-advantages {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Main content background will be body background */
}

.page-resources-new88-today-advantages__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Adjust as needed */
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #017439; /* Brand primary color for hero */
  color: #ffffff;
}

.page-resources-new88-today-advantages__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3; /* Make background image subtle */
}

.page-resources-new88-today-advantages__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-resources-new88-today-advantages__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for register/login type */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources-new88-today-advantages__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-resources-new88-today-advantages__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* For mobile responsiveness */
}

.page-resources-new88-today-advantages__btn-primary,
.page-resources-new88-today-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  white-space: normal; /* Allow text wrapping for buttons */
  word-wrap: break-word; /* Allow text wrapping for buttons */
  box-sizing: border-box; /* Crucial for button max-width */
}

.page-resources-new88-today-advantages__btn-primary {
  background-color: #C30808; /* Custom Register/Login color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-resources-new88-today-advantages__btn-primary:hover {
  background-color: #e01010;
  border-color: #e01010;
  transform: translateY(-2px);
}

.page-resources-new88-today-advantages__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-resources-new88-today-advantages__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.page-resources-new88-today-advantages__section {
  padding: 60px 20px;
  text-align: center;
  color: #f0f0f0; /* Default text color for sections */
}

.page-resources-new88-today-advantages__introduction-section {
  background-color: #1a1a2e; /* Body background color */
}

.page-resources-new88-today-advantages__advantages-section {
  background-color: #0d0d0d; /* Slightly darker to differentiate */
}

.page-resources-new88-today-advantages__why-choose-us {
  background-color: #017439; /* Brand primary color */
}

.page-resources-new88-today-advantages__video-section {
  background-color: #1a1a2e; /* Body background color */
}

.page-resources-new88-today-advantages__faq-section {
  background-color: #0d0d0d; /* Slightly darker */
}

.page-resources-new88-today-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-resources-new88-today-advantages__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #FFFF00; /* Use custom font color for main titles */
  position: relative;
  padding-bottom: 10px;
}

.page-resources-new88-today-advantages__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #017439; /* Brand primary color */
  border-radius: 2px;
}

.page-resources-new88-today-advantages__why-choose-us .page-resources-new88-today-advantages__section-title {
  color: #ffffff;
}

.page-resources-new88-today-advantages__why-choose-us .page-resources-new88-today-advantages__section-title::after {
  background-color: #FFFF00;
}

.page-resources-new88-today-advantages__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #e0e0e0; /* Slightly off-white for body text */
  text-align: left;
}

.page-resources-new88-today-advantages__advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
  text-align: left;
}

.page-resources-new88-today-advantages__advantage-item--reversed {
  flex-direction: column-reverse; /* For alternating layout on desktop */
}

.page-resources-new88-today-advantages__advantage-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #017439; /* Brand primary color for sub-titles */
}

.page-resources-new88-today-advantages__advantage-content {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.page-resources-new88-today-advantages__advantage-item--reversed .page-resources-new88-today-advantages__advantage-content {
  flex-direction: row-reverse;
}

.page-resources-new88-today-advantages__advantage-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-resources-new88-today-advantages__text-wrapper {
  flex: 1;
  max-width: 50%;
}

.page-resources-new88-today-advantages__feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  text-align: left;
}

.page-resources-new88-today-advantages__feature-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #e0e0e0;
  position: relative;
  padding-left: 25px;
}

.page-resources-new88-today-advantages__feature-list li::before {
  content: '✔';
  color: #017439; /* Brand primary color */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-resources-new88-today-advantages__benefit-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-resources-new88-today-advantages__benefit-list li {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #ffffff;
  flex: 1 1 calc(33% - 40px); /* 3 items per row on desktop */
  max-width: calc(33% - 40px);
  box-sizing: border-box;
}

.page-resources-new88-today-advantages__cta-bottom {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-resources-new88-today-advantages__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  margin: 0 auto 20px;
}

.page-resources-new88-today-advantages__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-resources-new88-today-advantages__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.page-resources-new88-today-advantages__video-caption {
  font-size: 1em;
  color: #e0e0e0;
  margin-top: 15px;
}

/* FAQ Section */
.page-resources-new88-today-advantages__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-resources-new88-today-advantages__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-new88-today-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: #017439; /* Brand primary color */
  transition: background-color 0.3s ease;
}

.page-resources-new88-today-advantages__faq-question:hover {
  background-color: #015f30;
}

.page-resources-new88-today-advantages__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00;
}

.page-resources-new88-today-advantages__faq-item.active .page-resources-new88-today-advantages__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}

.page-resources-new88-today-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
}

.page-resources-new88-today-advantages__faq-item.active .page-resources-new88-today-advantages__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

.page-resources-new88-today-advantages__faq-answer p {
  margin: 0;
  text-align: left;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-new88-today-advantages__hero-title {
    font-size: 2.8em;
  }
  .page-resources-new88-today-advantages__section-title {
    font-size: 2em;
  }
  .page-resources-new88-today-advantages__advantage-title {
    font-size: 1.8em;
  }
  .page-resources-new88-today-advantages__advantage-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources-new88-today-advantages__advantage-item--reversed .page-resources-new88-today-advantages__advantage-content {
    flex-direction: column; /* Reset order for smaller screens */
  }
  .page-resources-new88-today-advantages__advantage-image,
  .page-resources-new88-today-advantages__text-wrapper {
    max-width: 100%;
  }
  .page-resources-new88-today-advantages__benefit-list li {
    flex: 1 1 calc(50% - 30px); /* 2 items per row on tablet */
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .page-resources-new88-today-advantages__hero-section {
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-resources-new88-today-advantages__hero-title {
    font-size: 2em;
  }
  .page-resources-new88-today-advantages__hero-description {
    font-size: 1em;
  }
  .page-resources-new88-today-advantages__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-new88-today-advantages__btn-primary,
  .page-resources-new88-today-advantages__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources-new88-today-advantages__section {
    padding: 40px 15px;
  }
  .page-resources-new88-today-advantages__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources-new88-today-advantages__advantage-title {
    font-size: 1.5em;
  }
  .page-resources-new88-today-advantages__advantage-item {
    margin-bottom: 60px;
  }
  .page-resources-new88-today-advantages__feature-list,
  .page-resources-new88-today-advantages__text-block {
    font-size: 0.95em;
  }
  .page-resources-new88-today-advantages__benefit-list li {
    flex: 1 1 100%; /* 1 item per row on mobile */
    max-width: 100%;
  }
  .page-resources-new88-today-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important; /* Ensure minimum size */
  }
  .page-resources-new88-today-advantages__video,
  .page-resources-new88-today-advantages__video-link {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-new88-today-advantages__video-section,
  .page-resources-new88-today-advantages__video-container,
  .page-resources-new88-today-advantages__video-wrapper,
  .page-resources-new88-today-advantages__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources-new88-today-advantages__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-resources-new88-today-advantages__faq-answer {
    padding: 0 15px;
  }
  .page-resources-new88-today-advantages__faq-item.active .page-resources-new88-today-advantages__faq-answer {
    padding: 15px;
  }
}

/* Ensure no filter on images */
.page-resources-new88-today-advantages img {
  filter: none;
}

/* Content area image CSS size lower bound */
.page-resources-new88-today-advantages__advantage-image {
  min-width: 200px;
  min-height: 200px;
  width: auto;
  height: auto;
}
.page-resources-new88-today-advantages__text-block img,
.page-resources-new88-today-advantages p img,
.page-resources-new88-today-advantages li img {
  min-width: 200px;
  min-height: 200px;
  max-width: 100%;
  height: auto;
}