/* style/sic-bo.css */
.page-sic-bo {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1); /* Assuming --dark-bg-1 is dark */
}

/* Fixed header spacing */
.page-sic-bo__introduction {
  padding-top: 120px; /* Adjust if header overlaps, considering HERO is full-width */
}

/* HERO Section */
.page-sic-bo__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0; /* Ensure no extra space above hero */
}

.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;
}

/* LOGO Carousel Section */
.page-sic-bo__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sic-bo__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-sic-bo__logo-carousel {
  display: flex;
  gap: 30px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction for carousel */
}

.page-sic-bo__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-sic-bo__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Re-enable pointer events for links inside */
}

.page-sic-bo__logo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-sic-bo__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-sic-bo__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Showcase Section */
.page-sic-bo__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--dark-bg-1);
}

.page-sic-bo__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-sic-bo__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-sic-bo__featured-game-area {
  width: 100%;
}

.page-sic-bo__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 25px 0;
  color: #FFD700; /* Auxiliary color */
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-sic-bo__featured-game {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.page-sic-bo__featured-game:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

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

.page-sic-bo__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

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

.page-sic-bo__games-grid-area {
  width: 100%;
}

.page-sic-bo__games-tabs {
  display: flex;
  gap: 25px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: flex-start;
}

.page-sic-bo__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-sic-bo__games-tab:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255,255,255,0.7);
}

.page-sic-bo__games-tab.active {
  color: #FFD700; /* Auxiliary color for active tab */
  text-shadow: 0 0 10px rgba(255,215,0,0.8);
}

.page-sic-bo__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none; /* Default hidden */
}

.page-sic-bo__games-grid.active {
  display: grid; /* Active when visible */
}

.page-sic-bo__game-card {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sic-bo__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-sic-bo__game-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 15px 0;
  padding: 0 8px;
  color: #ffffff; /* Light text for dark background */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* General Section Styles */
.page-sic-bo__section {
  padding: 60px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sic-bo__section:last-of-type {
  border-bottom: none;
}

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

.page-sic-bo__heading {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700; /* Auxiliary color for main headings */
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.page-sic-bo__sub-heading {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
}

.page-sic-bo__paragraph {
  font-size: 17px;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-sic-bo__link {
  color: #CC0000; /* Main color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sic-bo__link:hover {
  color: #FFD700; /* Auxiliary color on hover */
  text-decoration: underline;
}

.page-sic-bo__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
  font-size: 17px;
  line-height: 1.8;
}

.page-sic-bo__list-item {
  margin-bottom: 8px;
}

/* Buttons */
.page-sic-bo__btn-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-sic-bo__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-sic-bo__btn-primary {
  background: #CC0000; /* Main brand color */
  color: #ffffff;
}

.page-sic-bo__btn-primary:hover {
  background: #FFD700; /* Auxiliary color on hover */
  color: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.page-sic-bo__btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #CC0000; /* Main brand color for border */
}

.page-sic-bo__btn-secondary:hover {
  background: #CC0000; /* Main brand color on hover */
  color: #ffffff;
  border-color: #FFD700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

/* Quick Links Grid */
.page-sic-bo__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.page-sic-bo__links-grid .page-sic-bo__btn {
  width: 100%;
}

/* Game Detail Cards */
.page-sic-bo__game-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sic-bo__game-detail-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sic-bo__game-detail-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-sic-bo__promotion-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sic-bo__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sic-bo__promotion-card .page-sic-bo__sub-heading {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-sic-bo__promotion-card .page-sic-bo__paragraph {
  font-size: 16px;
  margin-bottom: 25px;
  color: #e0e0e0;
}

/* Security & Support Features Grid */
.page-sic-bo__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sic-bo__feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sic-bo__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255,215,0,0.5)); /* Subtle shadow for icon, not changing color */
}

.page-sic-bo__feature-card .page-sic-bo__sub-heading {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #CC0000; /* Main brand color */
}

.page-sic-bo__feature-card .page-sic-bo__paragraph {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-sic-bo__faq-list {
  margin-top: 40px;
}

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

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

.page-sic-bo__faq-question:hover {
  background: rgba(255, 255, 255, 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: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-toggle {
  color: #CC0000;
  transform: rotate(45deg); /* Rotate for minus effect */
}

.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;
  background: rgba(255, 255, 255, 0.03);
}

.page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sic-bo__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

/* Blog Section */
.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.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sic-bo__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-sic-bo__blog-content {
  padding: 20px;
}

.page-sic-bo__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-sic-bo__blog-title a {
  color: #FFD700; /* Auxiliary color for blog titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sic-bo__blog-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-sic-bo__blog-excerpt {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 15px;
}

.page-sic-bo__blog-date {
  font-size: 14px;
  color: #999999;
  display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-sic-bo__container {
    max-width: 960px;
  }
}

@media (max-width: 1024px) {
  .page-sic-bo__games-layout {
    grid-template-columns: 1fr;
  }
  .page-sic-bo__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-sic-bo__game-detail-grid {
    grid-template-columns: 1fr;
  }
  .page-sic-bo__featured-game-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-sic-bo__hero-section {
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-sic-bo__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sic-bo__logo-carousel-section {
    padding: 30px 15px;
  }
  .page-sic-bo__logo-item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
  }
  .page-sic-bo__logo-carousel {
    gap: 20px;
  }
  .page-sic-bo__games-section {
    padding: 40px 15px;
  }
  .page-sic-bo__games-layout {
    gap: 20px;
  }
  .page-sic-bo__featured-game-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-sic-bo__featured-game-image {
    height: 300px;
  }
  .page-sic-bo__games-tabs {
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-sic-bo__games-tab {
    font-size: 18px;
  }
  .page-sic-bo__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-sic-bo__game-card-image {
    height: 150px;
  }
  .page-sic-bo__game-card-title {
    font-size: 14px;
    margin: 10px 0 12px 0;
    padding: 0 5px;
  }
  .page-sic-bo__section {
    padding: 40px 15px;
  }
  .page-sic-bo__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-sic-bo__heading {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-sic-bo__sub-heading {
    font-size: 20px;
    margin-top: 25px;
  }
  .page-sic-bo__paragraph {
    font-size: 16px;
    line-height: 1.7;
  }
  .page-sic-bo__btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-sic-bo__links-grid {
    grid-template-columns: 1fr;
  }
  .page-sic-bo__game-detail-card {
    padding: 20px;
  }
  .page-sic-bo__game-detail-image {
    height: 200px;
  }
  .page-sic-bo__promotions-grid, .page-sic-bo__features-grid, .page-sic-bo__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-sic-bo__promotion-card, .page-sic-bo__feature-card, .page-sic-bo__blog-card {
    padding: 20px;
  }
  .page-sic-bo__promotion-image {
    height: 180px;
  }
  .page-sic-bo__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-sic-bo__faq-question {
    padding: 15px 20px;
  }
  .page-sic-bo__faq-question h3 {
    font-size: 16px;
  }
  .page-sic-bo__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-sic-bo__faq-answer {
    padding: 0 20px;
  }
  .page-sic-bo__faq-item.active .page-sic-bo__faq-answer {
    padding: 15px 20px !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;
  }
  .page-sic-bo__introduction {
    padding-top: 100px; /* Adjusted for mobile fixed header */
  }
}

@media (max-width: 480px) {
  .page-sic-bo__heading {
    font-size: 22px;
  }
  .page-sic-bo__games-grid {
    grid-template-columns: 1fr;
  }
  .page-sic-bo__game-card-image {
    height: 180px;
  }
  .page-sic-bo__logo-item {
    width: 120px;
    height: 120px;
  }
  .page-sic-bo__featured-game-image {
    height: 250px;
  }
}