/* style/index-platform-overview.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --card-bg-color: #2A1212;
  --main-bg-color: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-index-platform-overview {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for dark background */
  background-color: var(--main-bg-color); /* Overall page background */
}

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

/* Hero Section */
.page-index-platform-overview__hero-section {
  position: relative;
  padding-top: 10px; /* Adjusted for shared header padding-top */
  padding-bottom: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-index-platform-overview__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

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

.page-index-platform-overview__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 8px;
  margin-top: -100px; /* Pull content up over image for design, but not overlapping text */
  transform: translateY(-50px);
}

.page-index-platform-overview__main-title {
  font-size: clamp(2em, 3.5vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-index-platform-overview__hero-description {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

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

/* General Section Styling */
.page-index-platform-overview__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 20px;
  font-weight: bold;
}

.page-index-platform-overview__sub-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-platform-overview__text-block {
  font-size: 1.1em;
  color: var(--text-main-color);
  margin-bottom: 20px;
  text-align: justify;
}

.page-index-platform-overview__dark-section {
  background-color: var(--card-bg-color);
  padding: 60px 0;
}

.page-index-platform-overview__feature-list,
.page-index-platform-overview__security-list,
.page-index-platform-overview__app-benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-index-platform-overview__feature-item,
.page-index-platform-overview__security-item,
.page-index-platform-overview__app-benefit-item {
  background: var(--deep-red-color);
  color: var(--text-main-color);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 1.05em;
}

.page-index-platform-overview__feature-item strong,
.page-index-platform-overview__security-item strong,
.page-index-platform-overview__app-benefit-item strong {
  color: var(--gold-color);
}

/* Product Grid */
.page-index-platform-overview__products-grid,
.page-index-platform-overview__promotions-grid,
.page-index-platform-overview__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-index-platform-overview__product-card,
.page-index-platform-overview__promotion-item,
.page-index-platform-overview__step-card,
.page-index-platform-overview__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color);
}

.page-index-platform-overview__product-image,
.page-index-platform-overview__promotion-image,
.page-index-platform-overview__download-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index-platform-overview__product-title,
.page-index-platform-overview__promotion-title,
.page-index-platform-overview__step-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index-platform-overview__product-title a,
.page-index-platform-overview__promotion-title a {
  color: inherit;
  text-decoration: none;
}

.page-index-platform-overview__product-title a:hover,
.page-index-platform-overview__promotion-title a:hover {
  text-decoration: underline;
}

.page-index-platform-overview__product-description,
.page-index-platform-overview__promotion-description,
.page-index-platform-overview__step-description {
  font-size: 1em;
  color: var(--text-main-color);
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Buttons */
.page-index-platform-overview__btn-primary,
.page-index-platform-overview__btn-secondary,
.page-index-platform-overview__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-index-platform-overview__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-index-platform-overview__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-index-platform-overview__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index-platform-overview__btn-tertiary {
  background: var(--deep-red-color);
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-index-platform-overview__btn-tertiary:hover {
  background: var(--gold-color);
  color: var(--deep-red-color);
}

.page-index-platform-overview__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-index-platform-overview__cta-buttons a {
  max-width: 100%;
}

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

.page-index-platform-overview__faq-item {
  text-align: left;
  padding: 0;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
}

.page-index-platform-overview__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 20px;
  background-color: var(--deep-red-color);
  color: var(--gold-color);
  font-weight: bold;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.page-index-platform-overview__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-index-platform-overview__faq-item[open] .page-index-platform-overview__faq-toggle {
  content: "−";
}

.page-index-platform-overview__faq-answer {
  padding: 15px 20px;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  font-size: 1em;
}

/* Download App Section */
.page-index-platform-overview__download-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-index-platform-overview__download-text {
  flex: 1;
  min-width: 300px;
}

.page-index-platform-overview__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.page-index-platform-overview__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */

/* General image responsiveness */
.page-index-platform-overview img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .page-index-platform-overview__content-area {
    padding: 30px 15px;
  }

  .page-index-platform-overview__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

  .page-index-platform-overview__hero-description {
    font-size: 1.1em;
  }

  .page-index-platform-overview__section-title {
    font-size: 2em;
  }

  .page-index-platform-overview__products-grid,
  .page-index-platform-overview__promotions-grid,
  .page-index-platform-overview__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-index-platform-overview__download-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index-platform-overview__download-text,
  .page-index-platform-overview__download-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-index-platform-overview__hero-section {
    padding-top: 10px !important; /* Fixed header spacing */
    padding-bottom: 20px;
  }

  .page-index-platform-overview__hero-content {
    margin-top: -50px; /* Adjust pull-up */
    transform: translateY(-25px);
    padding: 15px;
  }

  .page-index-platform-overview__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 10px;
  }

  .page-index-platform-overview__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

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

  /* General content area & images */
  .page-index-platform-overview__content-area {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-platform-overview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index-platform-overview__introduction-section,
  .page-index-platform-overview__products-section,
  .page-index-platform-overview__promotions-section,
  .page-index-platform-overview__security-section,
  .page-index-platform-overview__registration-section,
  .page-index-platform-overview__support-faq-section,
  .page-index-platform-overview__download-app-section,
  .page-index-platform-overview__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Product Display Area */
  .page-index-platform-overview__products-grid,
  .page-index-platform-overview__promotions-grid,
  .page-index-platform-overview__steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-index-platform-overview__product-card,
  .page-index-platform-overview__promotion-item,
  .page-index-platform-overview__step-card,
  .page-index-platform-overview__faq-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-index-platform-overview__product-image,
  .page-index-platform-overview__promotion-image {
    height: 200px; /* Adjust height for smaller screens */
  }

  .page-index-platform-overview__section-title {
    font-size: 1.8em !important;
  }

  .page-index-platform-overview__sub-title {
    font-size: 1.5em !important;
  }

  .page-index-platform-overview__text-block {
    font-size: 1em !important;
  }

  /* Buttons */
  .page-index-platform-overview__btn-primary,
  .page-index-platform-overview__btn-secondary,
  .page-index-platform-overview__btn-tertiary {
    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-overview__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Other content modules */
  .page-index-platform-overview__feature-item,
  .page-index-platform-overview__security-item,
  .page-index-platform-overview__app-benefit-item {
    font-size: 1em;
    padding: 12px 15px;
  }

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

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

  .page-index-platform-overview__download-content {
    flex-direction: column;
    text-align: center;
  }
}