/* style/resources-vn58-platform-features.css */

/* Base styles for the page */
.page-resources-vn58-platform-features {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Inherited from body, ensuring contrast */
}

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

.page-resources-vn58-platform-features__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-resources-vn58-platform-features__main-heading {
  font-size: 44px;
  font-weight: bold;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-resources-vn58-platform-features__sub-heading {
  font-size: 28px;
  font-weight: 600;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-vn58-platform-features__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark background */
  text-align: justify;
}

.page-resources-vn58-platform-features__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources-vn58-platform-features__button-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-resources-vn58-platform-features__btn-primary,
.page-resources-vn58-platform-features__btn-secondary,
.page-resources-vn58-platform-features__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 18px;
}

.page-resources-vn58-platform-features__btn-primary {
  background: #FFD700;
  color: #000000; /* Dark text for golden button */
  border-color: #FFD700;
}

.page-resources-vn58-platform-features__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources-vn58-platform-features__btn-secondary {
  background: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-resources-vn58-platform-features__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
  transform: translateY(-2px);
}

.page-resources-vn58-platform-features__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  background: #FFD700;
  color: #000000;
  border-color: #FFD700;
}

.page-resources-vn58-platform-features__btn-small:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

/* HERO Section */
.page-resources-vn58-platform-features__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Fixed navigation bar spacing */
  margin-top: 0;
}

.page-resources-vn58-platform-features__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-resources-vn58-platform-features__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Products Section */
.page-resources-vn58-platform-features__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.page-resources-vn58-platform-features__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-resources-vn58-platform-features__products-grid {
  display: grid;
  gap: 20px;
}

.page-resources-vn58-platform-features__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-resources-vn58-platform-features__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-resources-vn58-platform-features__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 3px solid #ffd700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-vn58-platform-features__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-resources-vn58-platform-features__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources-vn58-platform-features__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-resources-vn58-platform-features__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-resources-vn58-platform-features__intro-section {
  padding: 80px 0;
  background: #000000;
  color: #ffffff;
}

/* Quick Access Section */
.page-resources-vn58-platform-features__quick-access-section {
  padding: 60px 0;
  background-color: #0d0d0d;
}

.page-resources-vn58-platform-features__access-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-resources-vn58-platform-features__access-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-vn58-platform-features__access-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  background: #2a2a2a;
}

.page-resources-vn58-platform-features__access-card-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-vn58-platform-features__access-card p {
  font-size: 16px;
  color: #cccccc;
}

/* Games Section */
.page-resources-vn58-platform-features__games-section {
  padding: 80px 0;
  background: #000000;
  color: #ffffff;
}

.page-resources-vn58-platform-features__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-vn58-platform-features__game-category {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-resources-vn58-platform-features__game-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources-vn58-platform-features__category-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-resources-vn58-platform-features__category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-resources-vn58-platform-features__game-category:hover .page-resources-vn58-platform-features__category-image {
  transform: scale(1.05);
}

.page-resources-vn58-platform-features__category-title {
  font-size: 26px;
  color: #FFD700;
  padding: 20px 25px 10px;
  margin: 0;
}

.page-resources-vn58-platform-features__category-description {
  font-size: 16px;
  color: #cccccc;
  padding: 0 25px 25px;
  margin: 0;
  text-align: justify;
}

/* Promotions Section */
.page-resources-vn58-platform-features__promotions-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-resources-vn58-platform-features__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-vn58-platform-features__promo-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources-vn58-platform-features__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-vn58-platform-features__promo-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-resources-vn58-platform-features__promo-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.page-resources-vn58-platform-features__promo-card-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources-vn58-platform-features__promo-card p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-resources-vn58-platform-features__security-support-section {
  padding: 80px 0;
  background: #000000;
  color: #ffffff;
}

.page-resources-vn58-platform-features__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-vn58-platform-features__feature-item {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-resources-vn58-platform-features__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-vn58-platform-features__feature-icon-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  background: #8B0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-resources-vn58-platform-features__feature-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-resources-vn58-platform-features__feature-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-vn58-platform-features__feature-item p {
  font-size: 16px;
  color: #cccccc;
}

/* FAQ Section */
.page-resources-vn58-platform-features__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

.page-resources-vn58-platform-features__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-resources-vn58-platform-features__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
}

.page-resources-vn58-platform-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-resources-vn58-platform-features__faq-question:hover {
  background: #2a2a2a;
}

.page-resources-vn58-platform-features__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-resources-vn58-platform-features__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources-vn58-platform-features__faq-item.active .page-resources-vn58-platform-features__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Change to X */
}

.page-resources-vn58-platform-features__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 16px;
}

.page-resources-vn58-platform-features__faq-item.active .page-resources-vn58-platform-features__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 8px 8px;
}

/* Blog Section */
.page-resources-vn58-platform-features__blog-section {
  padding: 80px 0;
  background: #000000;
}

.page-resources-vn58-platform-features__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-vn58-platform-features__blog-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

.page-resources-vn58-platform-features__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-vn58-platform-features__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-resources-vn58-platform-features__blog-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-resources-vn58-platform-features__blog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-resources-vn58-platform-features__blog-card:hover .page-resources-vn58-platform-features__blog-image {
  transform: scale(1.05);
}

.page-resources-vn58-platform-features__blog-content {
  padding: 25px;
}

.page-resources-vn58-platform-features__blog-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources-vn58-platform-features__blog-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-resources-vn58-platform-features__blog-date {
  font-size: 14px;
  color: #888888;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-resources-vn58-platform-features__container {
    padding: 30px 15px;
  }
  .page-resources-vn58-platform-features__section-title {
    font-size: 32px;
  }
  .page-resources-vn58-platform-features__main-heading {
    font-size: 38px;
  }
  .page-resources-vn58-platform-features__sub-heading {
    font-size: 24px;
  }
  .page-resources-vn58-platform-features__text-block {
    font-size: 17px;
  }
}

@media (max-width: 1024px) {
  .page-resources-vn58-platform-features__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids stack vertically */
  }
  
  .page-resources-vn58-platform-features__products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-resources-vn58-platform-features__game-categories {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-vn58-platform-features__hero-section {
    padding-top: 10px; /* Mobile fixed navigation bar spacing */
  }
  .page-resources-vn58-platform-features__products-section {
    padding: 40px 15px;
  }
  .page-resources-vn58-platform-features__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  /* Front 4 images - 2x2 grid, square */
  .page-resources-vn58-platform-features__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-resources-vn58-platform-features__products-grid--small .page-resources-vn58-platform-features__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-resources-vn58-platform-features__products-grid--small .page-resources-vn58-platform-features__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-resources-vn58-platform-features__products-grid--small .page-resources-vn58-platform-features__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* Back 2 large images - each takes a row, square */
  .page-resources-vn58-platform-features__products-grid--large {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .page-resources-vn58-platform-features__products-grid--large .page-resources-vn58-platform-features__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-resources-vn58-platform-features__products-grid--large .page-resources-vn58-platform-features__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-resources-vn58-platform-features__products-grid--large .page-resources-vn58-platform-features__product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-resources-vn58-platform-features__section-title {
    font-size: 28px;
  }
  .page-resources-vn58-platform-features__main-heading {
    font-size: 32px;
  }
  .page-resources-vn58-platform-features__sub-heading {
    font-size: 20px;
  }
  .page-resources-vn58-platform-features__text-block {
    font-size: 16px;
  }
  .page-resources-vn58-platform-features__btn-primary,
  .page-resources-vn58-platform-features__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-resources-vn58-platform-features__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources-vn58-platform-features__access-links-grid,
  .page-resources-vn58-platform-features__game-categories,
  .page-resources-vn58-platform-features__promo-grid,
  .page-resources-vn58-platform-features__features-grid,
  .page-resources-vn58-platform-features__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources-vn58-platform-features__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources-vn58-platform-features__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources-vn58-platform-features__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources-vn58-platform-features__faq-answer {
    padding: 0 15px;
  }
  .page-resources-vn58-platform-features__faq-item.active .page-resources-vn58-platform-features__faq-answer {
    padding: 15px !important;
  }
  /* Mobile image responsive adaptation */
  .page-resources-vn58-platform-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources-vn58-platform-features__container,
  .page-resources-vn58-platform-features__access-card,
  .page-resources-vn58-platform-features__game-category,
  .page-resources-vn58-platform-features__promo-card,
  .page-resources-vn58-platform-features__feature-item,
  .page-resources-vn58-platform-features__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-vn58-platform-features__section-title {
    font-size: 24px;
  }
  .page-resources-vn58-platform-features__main-heading {
    font-size: 28px;
  }
  .page-resources-vn58-platform-features__sub-heading {
    font-size: 18px;
  }
  .page-resources-vn58-platform-features__btn-primary,
  .page-resources-vn58-platform-features__btn-secondary {
    padding: 10px 15px;
    font-size: 14px;
  }
}

/* Smart color contrast保障 - Dark body background */
.page-resources-vn58-platform-features {
  color: #ffffff; /* Default light text for dark background */
}

.page-resources-vn58-platform-features__dark-section {
  background: #000000;
  color: #ffffff;
}

.page-resources-vn58-platform-features__quick-access-section,
.page-resources-vn58-platform-features__promotions-section,
.page-resources-vn58-platform-features__faq-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-resources-vn58-platform-features__access-card,
.page-resources-vn58-platform-features__game-category,
.page-resources-vn58-platform-features__promo-card,
.page-resources-vn58-platform-features__feature-item,
.page-resources-vn58-platform-features__blog-card,
.page-resources-vn58-platform-features__faq-item {
  background: #1a1a1a;
  color: #f0f0f0;
}

.page-resources-vn58-platform-features__faq-item.active .page-resources-vn58-platform-features__faq-answer {
  background: #2a2a2a;
  color: #f0f0f0;
}

.page-resources-vn58-platform-features__btn-primary {
  background: #FFD700;
  color: #000000; /* Dark text for golden button */
}

.page-resources-vn58-platform-features__btn-secondary {
  background: transparent;
  color: #FFD700;
  border-color: #FFD700;
}

.page-resources-vn58-platform-features__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
}

.page-resources-vn58-platform-features__btn-small {
  background: #FFD700;
  color: #000000;
}