/* style/resources-top88-app-download-install.css */

/* Căn chỉnh cho fixed header */
.page-resources-top88-app-download-install {
  padding-top: 0; /* Hero section full width, no padding needed for fixed header */
  color: #ffffff; /* Text color for dark body background */
  background-color: #0d1117; /* Matches body background */
}

/* HERO Section */
.page-resources-top88-app-download-install__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0; /* Ensure no extra space at top */
}

.page-resources-top88-app-download-install__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-resources-top88-app-download-install__hero-image {
  width: 100%;
  margin: 0;
}

.page-resources-top88-app-download-install__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Product Showcase Section */
.page-resources-top88-app-download-install__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1a1e26; /* Slightly lighter dark background for contrast */
}

.page-resources-top88-app-download-install__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 small + 2 large */
  gap: 20px;
}

.page-resources-top88-app-download-install__products-grid {
  display: grid;
  gap: 20px;
}

.page-resources-top88-app-download-install__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-resources-top88-app-download-install__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-resources-top88-app-download-install__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2e36; /* Dark card background */
  border: 3px solid #FFD700; /* Gold border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-top88-app-download-install__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-resources-top88-app-download-install__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-resources-top88-app-download-install__product-card-image {
  width: 100%;
  height: 250px; /* Fixed height for desktop */
  overflow: hidden;
}

.page-resources-top88-app-download-install__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* General Section Styling */
.page-resources-top88-app-download-install__section {
  padding: 80px 20px;
  background-color: #0d1117;
}

.page-resources-top88-app-download-install__dark-section {
  background-color: #003366; /* Primary brand color */
  color: #ffffff;
}

.page-resources-top88-app-download-install__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-resources-top88-app-download-install__heading {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold heading */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-resources-top88-app-download-install__subheading {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-resources-top88-app-download-install__text {
  font-size: 18px;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources-top88-app-download-install__text a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-resources-top88-app-download-install__text a:hover {
  text-decoration: underline;
}

.page-resources-top88-app-download-install__keyword {
  color: #FFD700;
  font-weight: 700;
}

/* Buttons */
.page-resources-top88-app-download-install__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-resources-top88-app-download-install__btn-primary {
  background: #FFD700;
  color: #003366; /* Dark text on gold button */
}

.page-resources-top88-app-download-install__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-resources-top88-app-download-install__btn-secondary {
  background: #003366;
  color: #FFD700; /* Gold text on dark button */
  border: 2px solid #FFD700;
}

.page-resources-top88-app-download-install__btn-secondary:hover {
  background: #002244;
  transform: translateY(-2px);
}

.page-resources-top88-app-download-install__btn--centered {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Module 1: Intro App Section */
.page-resources-top88-app-download-install__intro-app-section .page-resources-top88-app-download-install__text {
  text-align: center;
}

/* Module 2: Download Guide Section */
.page-resources-top88-app-download-install__download-guide-section {
  background-color: #1a1e26;
}

.page-resources-top88-app-download-install__guide-block {
  background: #2a2e36;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
}

.page-resources-top88-app-download-install__guide-block .page-resources-top88-app-download-install__subheading {
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.page-resources-top88-app-download-install__list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.page-resources-top88-app-download-install__list-item {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #f0f0f0;
}

.page-resources-top88-app-download-install__list-item strong {
  color: #FFD700;
}

.page-resources-top88-app-download-install__list-item::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 20px;
  top: 0;
}

.page-resources-top88-app-download-install__guide-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources-top88-app-download-install__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Module 3: Benefits Section */
.page-resources-top88-app-download-install__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-top88-app-download-install__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-resources-top88-app-download-install__benefit-card:hover {
  transform: translateY(-10px);
}

.page-resources-top88-app-download-install__benefit-card img {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-resources-top88-app-download-install__benefit-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources-top88-app-download-install__benefit-description {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

/* Module 4: App Games Section */
.page-resources-top88-app-download-install__app-games-section {
  background-color: #1a1e26;
}

.page-resources-top88-app-download-install__app-games-section .page-resources-top88-app-download-install__text {
  text-align: center;
}

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

.page-resources-top88-app-download-install__game-card {
  background: #2a2e36;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
}

.page-resources-top88-app-download-install__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-top88-app-download-install__game-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources-top88-app-download-install__game-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Module 5: App Promo Section */
.page-resources-top88-app-download-install__app-promo-section .page-resources-top88-app-download-install__text {
  text-align: center;
}

.page-resources-top88-app-download-install__app-promo-section .page-resources-top88-app-download-install__list {
  list-style: disc;
  padding-left: 25px;
  max-width: 800px;
  margin: 20px auto 40px auto;
}

.page-resources-top88-app-download-install__app-promo-section .page-resources-top88-app-download-install__list-item {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-resources-top88-app-download-install__app-promo-section .page-resources-top88-app-download-install__list-item strong {
  color: #FFD700;
}

/* Module 6: App Support FAQ Section */
.page-resources-top88-app-download-install__app-support-faq-section {
  background-color: #1a1e26;
}

.page-resources-top88-app-download-install__app-support-faq-section .page-resources-top88-app-download-install__text {
  text-align: center;
}

.page-resources-top88-app-download-install__faq-list {
  margin-top: 40px;
}

.page-resources-top88-app-download-install__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #2a2e36;
}

.page-resources-top88-app-download-install__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.7;
}

.page-resources-top88-app-download-install__faq-item.active .page-resources-top88-app-download-install__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #3a3e46; /* Slightly lighter background for open FAQ */
  border-radius: 0 0 5px 5px;
}

.page-resources-top88-app-download-install__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Dark background for question */
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-top88-app-download-install__faq-question:hover {
  background: #004488;
  border-color: #ffd700;
}

.page-resources-top88-app-download-install__faq-question:active {
  background: #002244;
}

.page-resources-top88-app-download-install__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources-top88-app-download-install__faq-toggle {
  font-size: 24px;
  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: 28px;
  height: 28px;
}

.page-resources-top88-app-download-install__faq-item.active .page-resources-top88-app-download-install__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

/* Module 7: App News Section */
.page-resources-top88-app-download-install__app-news-section .page-resources-top88-app-download-install__text {
  text-align: center;
}

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

.page-resources-top88-app-download-install__blog-card {
  background: #2a2e36;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-resources-top88-app-download-install__blog-card:hover {
  transform: translateY(-5px);
}

.page-resources-top88-app-download-install__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-resources-top88-app-download-install__blog-content {
  padding: 20px;
}

.page-resources-top88-app-download-install__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources-top88-app-download-install__blog-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-resources-top88-app-download-install__blog-title a:hover {
  text-decoration: underline;
}

.page-resources-top88-app-download-install__blog-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-resources-top88-app-download-install__blog-date {
  font-size: 14px;
  color: #aaa;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-top88-app-download-install__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids stack vertically */
  }
  
  .page-resources-top88-app-download-install__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-resources-top88-app-download-install__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-resources-top88-app-download-install__heading {
    font-size: 32px;
  }
  
  .page-resources-top88-app-download-install__subheading {
    font-size: 24px;
  }
  
  .page-resources-top88-app-download-install__text {
    font-size: 17px;
  }
  
  .page-resources-top88-app-download-install__section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-resources-top88-app-download-install {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Mobile image adaptation - IMPORTANT */
  .page-resources-top88-app-download-install img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-top88-app-download-install__section,
  .page-resources-top88-app-download-install__container,
  .page-resources-top88-app-download-install__guide-block,
  .page-resources-top88-app-download-install__benefit-card,
  .page-resources-top88-app-download-install__game-card,
  .page-resources-top88-app-download-install__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-top88-app-download-install__products-section {
    padding: 40px 15px;
  }
  
  .page-resources-top88-app-download-install__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  /* Front 4 cards - 2x2 grid, square */
  .page-resources-top88-app-download-install__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-resources-top88-app-download-install__products-grid--small .page-resources-top88-app-download-install__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-resources-top88-app-download-install__products-grid--small .page-resources-top88-app-download-install__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  
  /* Back 2 cards - each on a new line, square */
  .page-resources-top88-app-download-install__products-grid--large {
    grid-template-columns: 1fr; /* Each card on its own line */
    gap: 15px;
  }
  
  .page-resources-top88-app-download-install__products-grid--large .page-resources-top88-app-download-install__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-resources-top88-app-download-install__products-grid--large .page-resources-top88-app-download-install__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }

  .page-resources-top88-app-download-install__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-top88-app-download-install__subheading {
    font-size: 22px;
  }

  .page-resources-top88-app-download-install__list-item {
    font-size: 16px;
  }

  .page-resources-top88-app-download-install__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-top88-app-download-install__btn {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-resources-top88-app-download-install__benefits-grid,
  .page-resources-top88-app-download-install__games-grid,
  .page-resources-top88-app-download-install__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-top88-app-download-install__benefit-card img {
    width: 100px;
    height: 100px;
  }

  .page-resources-top88-app-download-install__benefit-title {
    font-size: 20px;
  }

  .page-resources-top88-app-download-install__game-card img {
    height: 180px;
  }

  .page-resources-top88-app-download-install__blog-card img {
    height: 180px;
  }

  .page-resources-top88-app-download-install__blog-title {
    font-size: 18px;
  }

  .page-resources-top88-app-download-install__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-top88-app-download-install__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-top88-app-download-install__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-top88-app-download-install__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-top88-app-download-install__faq-item.active .page-resources-top88-app-download-install__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-resources-top88-app-download-install__heading {
    font-size: 24px;
  }
  .page-resources-top88-app-download-install__subheading {
    font-size: 20px;
  }
  .page-resources-top88-app-download-install__text {
    font-size: 15px;
  }
  .page-resources-top88-app-download-install__list-item {
    font-size: 15px;
  }
  .page-resources-top88-app-download-install__products-grid--small {
    grid-template-columns: 1fr;
  }
  .page-resources-top88-app-download-install__products-grid--large {
    grid-template-columns: 1fr;
  }
  .page-resources-top88-app-download-install__product-card-image {
    height: auto; /* Allow height to be auto for smaller screens */
  }
  .page-resources-top88-app-download-install__product-card {
    aspect-ratio: 1 / 1;
  }
}