/* style/index-platform-features.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-light: #F4F7FB;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-index-platform-features {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-light); /* Default light background */
}

.page-index-platform-features__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-index-platform-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding for content */
  background: var(--primary-color); /* Fallback for dark-bg, but will be overridden */
  color: #ffffff;
}

.page-index-platform-features__hero-section.page-index-platform-features__dark-bg {
  background: var(--primary-color);
  color: #ffffff; /* Deep blue background with white text */
}

.page-index-platform-features__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-platform-features__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-platform-features__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content slightly up over the image bottom */
}

.page-index-platform-features__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

.page-index-platform-features__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-platform-features__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-platform-features__btn-primary,
.page-index-platform-features__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index-platform-features__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index-platform-features__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  opacity: 0.9;
}

.page-index-platform-features__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index-platform-features__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  background: var(--primary-color);
  color: #ffffff;
}

/* General Section Styles */
.page-index-platform-features__features-overview,
.page-index-platform-features__security-section,
.page-index-platform-features__promotions-vip,
.page-index-platform-features__mobile-app-section,
.page-index-platform-features__faq-section {
  padding: 80px 0;
}

.page-index-platform-features__light-bg {
  background-color: var(--background-light);
  color: var(--text-main);
}

.page-index-platform-features__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-index-platform-features__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.3;
  color: var(--text-main); /* Default for light backgrounds */
}

.page-index-platform-features__dark-bg .page-index-platform-features__section-title {
  color: #ffffff; /* White for dark backgrounds */
}

.page-index-platform-features__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
}

.page-index-platform-features__dark-bg .page-index-platform-features__text-block {
  color: #f0f0f0;
}

/* Feature Grid */
.page-index-platform-features__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-platform-features__feature-card.page-index-platform-features__card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-index-platform-features__feature-card.page-index-platform-features__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.page-index-platform-features__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px;
  min-height: 200px;
}

.page-index-platform-features__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index-platform-features__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #555555;
}

.page-index-platform-features__btn-text {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-platform-features__btn-text:hover {
  color: var(--secondary-color);
}

.page-index-platform-features__arrow {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-index-platform-features__btn-text:hover .page-index-platform-features__arrow {
  transform: translateX(5px);
}

/* Security and Promotions Sections Layout */
.page-index-platform-features__content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index-platform-features__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-index-platform-features__text-content,
.page-index-platform-features__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-index-platform-features__text-content {
  text-align: left;
}

.page-index-platform-features__image-content {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-index-platform-features__list-icon {
  margin-right: 10px;
  color: #32CD32; /* Green checkmark */
  font-weight: bold;
}

.page-index-platform-features__security-list,
.page-index-platform-features__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index-platform-features__security-list li,
.page-index-platform-features__promo-list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
}

.page-index-platform-features__dark-bg .page-index-platform-features__security-list li,
.page-index-platform-features__dark-bg .page-index-platform-features__promo-list li {
  color: #f0f0f0;
}

.page-index-platform-features__cta-buttons--inline {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

/* FAQ Section */
.page-index-platform-features__faq-list {
  margin-top: 40px;
}

.page-index-platform-features__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-index-platform-features__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  color: var(--primary-color);
}

.page-index-platform-features__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-index-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-index-platform-features__faq-qtext {
  flex-grow: 1;
}

.page-index-platform-features__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-index-platform-features__faq-item[open] .page-index-platform-features__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-index-platform-features__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-index-platform-features__faq-answer p {
  margin: 0;
}

.page-index-platform-features__contact-cta {
  text-align: center;
  margin-top: 50px;
  padding: 40px;
  background: #f0f6ff; /* Lighter blue background */
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.page-index-platform-features__contact-cta .page-index-platform-features__text-block {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-platform-features__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-index-platform-features__section-title {
    font-size: 2rem;
  }

  .page-index-platform-features__hero-content {
    margin-top: -50px;
  }

  .page-index-platform-features__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-index-platform-features__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-index-platform-features__text-content,
  .page-index-platform-features__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-index-platform-features__text-content {
    text-align: center;
  }

  .page-index-platform-features__security-list,
  .page-index-platform-features__promo-list {
    text-align: left;
    display: block;
    margin: 0 auto 30px auto;
    max-width: 400px; /* Constrain list width for better readability */
  }

  .page-index-platform-features__cta-buttons--inline {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index-platform-features__hero-section {
    padding-bottom: 40px;
  }

  .page-index-platform-features__hero-content {
    padding: 20px;
    margin-top: -30px;
  }

  .page-index-platform-features__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-index-platform-features__description {
    font-size: 1rem;
  }

  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-platform-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-platform-features__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-index-platform-features__text-block {
    font-size: 1rem;
  }

  .page-index-platform-features__feature-card.page-index-platform-features__card {
    padding: 25px;
  }

  .page-index-platform-features__feature-icon {
    min-width: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-platform-features__image-content {
    min-width: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General image responsiveness */
  .page-index-platform-features img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-platform-features__section,
  .page-index-platform-features__card,
  .page-index-platform-features__container,
  .page-index-platform-features__content-wrapper,
  .page-index-platform-features__cta-buttons,
  .page-index-platform-features__button-group,
  .page-index-platform-features__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-platform-features__features-overview,
  .page-index-platform-features__security-section,
  .page-index-platform-features__promotions-vip,
  .page-index-platform-features__mobile-app-section,
  .page-index-platform-features__faq-section {
    padding: 40px 0;
  }

  .page-index-platform-features__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-index-platform-features__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-index-platform-features__contact-cta {
    padding: 30px 20px;
  }

  .page-index-platform-features__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset, tại đây chỉ là khoảng cách nhỏ */
  }
  
  /* Video specific mobile styles */
  .page-index-platform-features video,
  .page-index-platform-features__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-platform-features__video-section,
  .page-index-platform-features__video-container,
  .page-index-platform-features__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-index-platform-features__cta-buttons--inline {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-index-platform-features__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }

  .page-index-platform-features__section-title {
    font-size: 1.6rem;
  }

  .page-index-platform-features__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index-platform-features__btn-primary,
  .page-index-platform-features__btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-index-platform-features__faq-item summary {
    font-size: 1rem;
    padding: 12px 15px;
  }

  .page-index-platform-features__faq-answer {
    padding: 0 15px 12px 15px;
  }

  .page-index-platform-features__contact-cta .page-index-platform-features__text-block {
    font-size: 1rem;
  }
}