/* style/sic-bo.css */

/* Base styles for the page */
.page-sic-bo {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000; /* Inherited from shared.css, explicitly set for clarity */
  padding-top: 0; /* Hero section is at the top */
}

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

.page-sic-bo__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
}

.page-sic-bo__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #8B0000; /* Deep red underline */
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-sic-bo__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: justify;
}

.page-sic-bo__link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sic-bo__link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-sic-bo__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-sic-bo__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sic-bo__button-group--center {
  justify-content: center;
}

.page-sic-bo__btn-primary,
.page-sic-bo__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 180px;
}

.page-sic-bo__btn-primary {
  background: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-sic-bo__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-sic-bo__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-sic-bo__btn-secondary:hover {
  background: #FFD700;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.page-sic-bo__btn-small {
  padding: 10px 20px;
  font-size: 14px;
  min-width: 120px;
}

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

.page-sic-bo__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-sic-bo__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Products Section */
.page-sic-bo__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #000;
}

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

.page-sic-bo__products-grid {
  display: grid;
  gap: 20px;
}

.page-sic-bo__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-sic-bo__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-sic-bo__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  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-sic-bo__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.page-sic-bo__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-sic-bo__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-sic-bo__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Intro Section */
.page-sic-bo__intro-section {
  padding: 80px 0;
  background-color: #000; /* Dark background */
  color: #f0f0f0;
}

.page-sic-bo__main-heading {
  font-size: 42px;
  font-weight: 800;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-sic-bo__intro-section .page-sic-bo__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.8;
}

/* Quick Links Section */
.page-sic-bo__quick-links-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.page-sic-bo__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-sic-bo__quick-link-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__quick-link-card:hover {
  background: rgba(255, 215, 0, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-sic-bo__quick-link-card h3 {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-sic-bo__quick-link-card p {
  font-size: 15px;
  color: #cccccc;
}

/* Games Section */
.page-sic-bo__games-section {
  padding: 80px 0;
  background-color: #000; /* Dark background */
  color: #f0f0f0;
}

.page-sic-bo__game-category {
  margin-bottom: 60px;
}

.page-sic-bo__game-category-title {
  font-size: 32px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-sic-bo__game-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-sic-bo__game-content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-sic-bo__game-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid #8B0000;
}

.page-sic-bo__game-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sic-bo__game-description {
  flex: 1;
  max-width: 50%;
}

.page-sic-bo__game-description p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* Promotions Section */
.page-sic-bo__promotions-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #f0f0f0;
}

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

.page-sic-bo__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-sic-bo__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

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

.page-sic-bo__promo-card h3 {
  font-size: 24px;
  color: #FFD700;
  margin: 20px 15px 10px;
  font-weight: 700;
}

.page-sic-bo__promo-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 15px 20px;
}

.page-sic-bo__promo-card .page-sic-bo__btn-primary {
  margin-bottom: 20px;
  padding: 10px 25px;
  font-size: 15px;
}

.page-sic-bo__promotion-note {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  color: #aaa;
}

/* Security & Support Section */
.page-sic-bo__security-support-section {
  padding: 80px 0;
  background-color: #000; /* Dark background */
  color: #f0f0f0;
}

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

.page-sic-bo__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(139, 0, 0, 0.5);
}

.page-sic-bo__security-item img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-sic-bo__security-item h3 {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-sic-bo__security-item p {
  font-size: 15px;
  color: #cccccc;
}

/* FAQ Section */
.page-sic-bo__faq-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #f0f0f0;
}

.page-sic-bo__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sic-bo__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-sic-bo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sic-bo__faq-question:hover {
  background: rgba(255, 215, 0, 0.15);
}

.page-sic-bo__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-sic-bo__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: 32px;
  height: 32px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  color: #8B0000;
  transform: rotate(45deg);
}

.page-sic-bo__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.4s ease;
  padding: 0 25px;
  opacity: 0;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0 0 8px 8px;
}

.page-sic-bo__faq-answer p {
  font-size: 16px;
  color: #cccccc;
  margin: 0;
}

/* Blog Section */
.page-sic-bo__blog-section {
  padding: 80px 0;
  background-color: #000; /* Dark background */
  color: #f0f0f0;
}

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

.page-sic-bo__blog-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.5);
}

.page-sic-bo__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 0, 0, 0.5);
}

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

.page-sic-bo__blog-card h3 {
  font-size: 22px;
  color: #FFD700;
  margin: 20px 15px 10px;
  font-weight: 700;
}

.page-sic-bo__blog-card h3 a.page-sic-bo__blog-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sic-bo__blog-card h3 a.page-sic-bo__blog-link:hover {
  color: #fff;
  text-decoration: underline;
}

.page-sic-bo__blog-card p {
  font-size: 15px;
  color: #cccccc;
  padding: 0 15px 20px;
}

.page-sic-bo__blog-card .page-sic-bo__btn-secondary {
  margin: 0 15px 20px;
  padding: 8px 18px;
  font-size: 14px;
  display: inline-block;
  min-width: unset;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sic-bo__container {
    padding: 30px 15px;
  }
  .page-sic-bo__section-title {
    font-size: 30px;
  }
  .page-sic-bo__main-heading {
    font-size: 36px;
  }
  .page-sic-bo__products-container {
    grid-template-columns: 1fr; /* Mobile: two grids vertically */
  }
  .page-sic-bo__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-sic-bo__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-sic-bo__game-content-wrapper,
  .page-sic-bo__game-content-wrapper--reverse {
    flex-direction: column;
  }
  .page-sic-bo__game-image,
  .page-sic-bo__game-description {
    max-width: 100%;
  }
  .page-sic-bo__game-category-title {
    font-size: 28px;
  }
  .page-sic-bo__promo-card h3,
  .page-sic-bo__security-item h3,
  .page-sic-bo__blog-card h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-sic-bo {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sic-bo__container {
    padding: 20px 15px;
  }
  .page-sic-bo__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-sic-bo__main-heading {
    font-size: 28px;
  }
  .page-sic-bo__text-block {
    font-size: 15px;
  }
  .page-sic-bo__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-sic-bo__btn-primary, .page-sic-bo__btn-secondary {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    font-size: 15px;
  }

  .page-sic-bo__hero-section,
  .page-sic-bo__products-section,
  .page-sic-bo__intro-section,
  .page-sic-bo__quick-links-section,
  .page-sic-bo__games-section,
  .page-sic-bo__promotions-section,
  .page-sic-bo__security-support-section,
  .page-sic-bo__faq-section,
  .page-sic-bo__blog-section {
    padding: 40px 0;
  }

  /* Mobile specific product grid */
  .page-sic-bo__products-container {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 15px;
  }
  .page-sic-bo__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-sic-bo__products-grid--small .page-sic-bo__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-sic-bo__products-grid--small .page-sic-bo__product-card-image {
    height: 100%;
    aspect-ratio: 1 / 1;
  }
  .page-sic-bo__products-grid--large {
    grid-template-columns: 1fr; /* Each large card on its own row */
    gap: 15px;
  }
  .page-sic-bo__products-grid--large .page-sic-bo__product-card {
    aspect-ratio: 1 / 1;
  }
  .page-sic-bo__products-grid--large .page-sic-bo__product-card-image {
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .page-sic-bo__game-image {
    max-width: 100%;
  }
  .page-sic-bo__game-description {
    max-width: 100%;
  }
  .page-sic-bo__game-category-title {
    font-size: 24px;
  }
  .page-sic-bo__quick-link-card h3 {
    font-size: 18px;
  }
  .page-sic-bo__promo-card h3,
  .page-sic-bo__security-item h3,
  .page-sic-bo__blog-card h3 {
    font-size: 18px;
  }
  .page-sic-bo__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-sic-bo__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-sic-bo__faq-answer {
    padding: 0 15px;
  }
  .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    padding: 15px !important;
  }
  .page-sic-bo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sic-bo__section,
  .page-sic-bo__card,
  .page-sic-bo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Dark background for sections, ensuring light text */
.page-sic-bo__dark-bg {
  background-color: #000;
  color: #f0f0f0;
}

/* Lighter dark background for sections, ensuring light text */
.page-sic-bo__light-bg {
  background-color: #0d0d0d;
  color: #f0f0f0;
}