/* style/jun88-community-forum.css */

/* Base styles for the page content, ensuring proper contrast with body background */
.page-jun88-community-forum {
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency, though shared.css sets body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* HERO section is full width, no padding needed for fixed header */
}

.page-jun88-community-forum__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-jun88-community-forum__section {
  padding: 60px 0;
}

.page-jun88-community-forum__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-jun88-community-forum__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-jun88-community-forum__highlight {
  color: #FFD700;
}

.page-jun88-community-forum__text-block {
  margin-bottom: 15px;
  font-size: 16px;
  color: #e0e0e0;
}

/* Buttons */
.page-jun88-community-forum__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-jun88-community-forum__cta-group--center {
  justify-content: center;
}

.page-jun88-community-forum__btn-primary,
.page-jun88-community-forum__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-jun88-community-forum__btn-primary {
  background-color: #FFD700;
  color: #1A2B4C;
  border: 2px solid #FFD700;
}

.page-jun88-community-forum__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-jun88-community-forum__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-jun88-community-forum__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A2B4C;
}

/* HERO Section */
.page-jun88-community-forum__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

.page-jun88-community-forum__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-jun88-community-forum__hero-image {
  width: 100%;
  margin: 0;
}

.page-jun88-community-forum__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

/* Product Showcase Section */
.page-jun88-community-forum__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #1A2B4C; /* Dark blue background for product showcase */
}

.page-jun88-community-forum__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr;
  gap: 20px;
}

.page-jun88-community-forum__products-grid {
  display: grid;
  gap: 20px;
}

.page-jun88-community-forum__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-jun88-community-forum__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-jun88-community-forum__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a2b4c; /* Match section background */
  border: 3px solid #FFD700; /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jun88-community-forum__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.page-jun88-community-forum__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-jun88-community-forum__product-card-image {
  width: 100%;
  height: 250px; /* Fixed height for desktop */
  overflow: hidden;
}

.page-jun88-community-forum__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Homepage Introduction Section */
.page-jun88-community-forum__intro-section {
  background-color: #1A2B4C; /* Dark blue background */
  color: #ffffff;
}

.page-jun88-community-forum__main-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Quick Access Section */
.page-jun88-community-forum__quick-access-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-jun88-community-forum__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-jun88-community-forum__link-card {
  background: #1A2B4C; /* Dark blue card background */
  border: 1px solid #FFD700; /* Golden border */
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-jun88-community-forum__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-jun88-community-forum__link-card img {
  width: 150px; /* Larger icon size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-jun88-community-forum__link-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-jun88-community-forum__link-card-desc {
  font-size: 15px;
  color: #e0e0e0;
}

/* Core Games/Services Section */
.page-jun88-community-forum__games-section {
  background-color: #1A2B4C; /* Dark blue background */
  color: #ffffff;
}

.page-jun88-community-forum__game-category {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.page-jun88-community-forum__game-category-title {
  font-size: 28px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-jun88-community-forum__game-category img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  max-height: 450px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-jun88-community-forum__promotions-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-jun88-community-forum__promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-jun88-community-forum__promo-card {
  background: #1A2B4C;
  border: 1px solid #FFD700;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-jun88-community-forum__promo-card:hover {
  transform: translateY(-8px);
}

.page-jun88-community-forum__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-jun88-community-forum__promo-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-jun88-community-forum__promo-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-jun88-community-forum__promo-card-desc {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-jun88-community-forum__promo-card .page-jun88-community-forum__btn-primary {
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 5px;
}

/* Security & Customer Service Section */
.page-jun88-community-forum__security-service-section {
  background-color: #1A2B4C; /* Dark blue background */
  color: #ffffff;
}

.page-jun88-community-forum__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jun88-community-forum__feature-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jun88-community-forum__feature-item img {
  width: 150px; /* Larger icon size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-jun88-community-forum__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-jun88-community-forum__feature-desc {
  font-size: 15px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-jun88-community-forum__faq-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-jun88-community-forum__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-jun88-community-forum__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #1A2B4C; /* Dark blue background for FAQ item */
}

.page-jun88-community-forum__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: #e0e0e0;
}

.page-jun88-community-forum__faq-item.active .page-jun88-community-forum__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #1A2B4C; /* Keep consistent background */
  border-radius: 0 0 5px 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jun88-community-forum__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A2B4C; /* Dark blue question background */
  border: 1px solid #FFD700; /* Golden border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-jun88-community-forum__faq-question:hover {
  background: #2b3e64;
  border-color: #e6c200;
}

.page-jun88-community-forum__faq-question:active {
  background: #3c517c;
}

.page-jun88-community-forum__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-jun88-community-forum__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-jun88-community-forum__faq-item.active .page-jun88-community-forum__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Latest Blog Content Section */
.page-jun88-community-forum__blog-section {
  background-color: #1A2B4C; /* Dark blue background */
  color: #ffffff;
}

.page-jun88-community-forum__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jun88-community-forum__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-jun88-community-forum__blog-card:hover {
  transform: translateY(-8px);
}

.page-jun88-community-forum__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-jun88-community-forum__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-jun88-community-forum__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-jun88-community-forum__blog-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jun88-community-forum__blog-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-jun88-community-forum__blog-card-excerpt {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-jun88-community-forum__blog-date {
  font-size: 13px;
  color: #aaa;
}

/* Contact Section */
.page-jun88-community-forum__contact-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-jun88-community-forum__contact-info {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
}

.page-jun88-community-forum__contact-info p {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.page-jun88-community-forum__contact-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-jun88-community-forum__contact-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* General dark background text color */
.page-jun88-community-forum__dark-bg {
  color: #ffffff;
}

/* Responsive Design */
/* Mobile image and container responsiveness */
.page-jun88-community-forum img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .page-jun88-community-forum__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids vertically */
  }
  
  .page-jun88-community-forum__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-jun88-community-forum__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-jun88-community-forum {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-jun88-community-forum__container {
    padding: 30px 15px;
  }

  .page-jun88-community-forum__section {
    padding: 40px 0;
  }

  .page-jun88-community-forum__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-jun88-community-forum__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-jun88-community-forum__main-title {
    font-size: 32px;
  }

  .page-jun88-community-forum__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-jun88-community-forum__btn-primary,
  .page-jun88-community-forum__btn-secondary {
    width: 100%;
    font-size: 16px;
    padding: 12px 20px;
  }

  /* HERO Section */
  .page-jun88-community-forum__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-jun88-community-forum__hero-image img {
    width: 100%;
    height: auto;
  }

  /* Product Showcase Section */
  .page-jun88-community-forum__products-section {
    padding: 40px 15px;
  }
  
  .page-jun88-community-forum__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .page-jun88-community-forum__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-jun88-community-forum__products-grid--small .page-jun88-community-forum__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-jun88-community-forum__products-grid--small .page-jun88-community-forum__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-jun88-community-forum__products-grid--large {
    grid-template-columns: 1fr; /* Each card takes full width */
    gap: 15px;
  }
  
  .page-jun88-community-forum__products-grid--large .page-jun88-community-forum__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  
  .page-jun88-community-forum__products-grid--large .page-jun88-community-forum__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
}