.page-casino {
  color: #ffffff; /* Body background is dark, so use light text */
  background-color: #000;
  font-family: 'Arial', sans-serif;
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffc107; /* Highlight with auxiliary color */
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.6;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #007bff;
  color: #ffffff;
  border: 2px solid #007bff;
}

.page-casino__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.page-casino__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared 已给 body 留白时用 0；若 shared 未给 body 留白则改为 var(--header-offset, 120px) */
  margin-top: 0;
  background-color: #000; /* Ensure black background for full width */
}

.page-casino__hero-container {
  position: relative;
  margin: 0 auto;
}

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

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

/* LOGO Carousel Section */
.page-casino__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #0d0d0d; /* Slightly lighter dark background for contrast */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-casino__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

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

.page-casino__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #222222;
  border: 1px solid #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-casino__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 123, 255, 0.2);
}

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

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

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

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

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

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

.page-casino__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffc107;
  text-align: left;
}

.page-casino__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

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

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

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

.page-casino__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-casino__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-casino__games-tab:hover {
  color: #ffffff;
}

.page-casino__games-tab.active {
  color: #ffc107; /* Active tab in yellow */
  text-decoration: underline;
}

.page-casino__games-tab.active + .page-casino__games-tab {
  color: #ffffff;
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-casino__games-grid.active {
  display: grid;
}

.page-casino__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-casino__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Introduction Section */
.page-casino__introduction-section {
  padding: 80px 20px;
}

.page-casino__dark-bg {
  background: #007bff;
  color: #ffffff;
}

.page-casino__introduction-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__introduction-section .page-casino__section-description {
  color: #f0f8ff;
}

/* Quick Links Section */
.page-casino__quick-links-section {
  padding: 80px 20px;
  background: #0d0d0d;
}

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

.page-casino__link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-casino__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
  background-color: #007bff;
}

.page-casino__link-card img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
}

.page-casino__link-card span {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

/* Main Games Section (Carousel for overview cards) */
.page-casino__main-games-section {
  padding: 80px 20px;
}

.page-casino__main-games-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__main-games-section .page-casino__section-description {
  color: #f0f8ff;
}

.page-casino__games-carousel-wrapper {
  overflow-x: auto;
  padding-bottom: 20px; /* Space for scrollbar */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #007bff #333; /* Firefox */
}

.page-casino__games-carousel-wrapper::-webkit-scrollbar {
  height: 8px;
}

.page-casino__games-carousel-wrapper::-webkit-scrollbar-track {
  background: #333;
  border-radius: 10px;
}

.page-casino__games-carousel-wrapper::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 10px;
  border: 2px solid #333;
}

.page-casino__games-carousel {
  display: flex;
  gap: 30px;
  padding: 10px 0;
}

.page-casino__game-overview-card {
  flex: 0 0 320px; /* Fixed width for each card */
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-overview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.page-casino__game-overview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__game-overview-card h3 {
  font-size: 22px;
  color: #ffc107;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-overview-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-casino__game-overview-card .page-casino__btn-primary {
  margin-top: 10px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 20px;
  background: #0d0d0d;
}

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

.page-casino__promo-card {
  background: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.page-casino__promo-card img {
  width: 100%;
  
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__promo-card h3 {
  font-size: 22px;
  color: #ffc107;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-card p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 25px;
  padding: 0 15px;
}

/* Security & Support Section */
.page-casino__security-support-section {
  padding: 80px 20px;
}

.page-casino__security-support-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__security-support-section .page-casino__section-description {
  color: #f0f8ff;
}

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

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-8px);
  background-color: rgba(0, 123, 255, 0.2);
}

.page-casino__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-item h3 {
  font-size: 22px;
  color: #ffc107;
  margin-bottom: 10px;
}

.page-casino__feature-item p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
}

.page-casino__contact-cta {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 20px;
  background: #0d0d0d;
}

.page-casino__faq-section .page-casino__section-title {
  color: #ffc107;
}

.page-casino__faq-section .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__faq-list {
  margin-top: 40px;
}

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

.page-casino__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 20px;
  opacity: 0;
  color: #cccccc;
  font-size: 15px;
  line-height: 1.6;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 20px !important;
  opacity: 1;
  background: #222222;
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #007bff;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-casino__faq-question:hover {
  background: #0056b3;
}

.page-casino__faq-question:active {
  background: #003f7f;
}

.page-casino__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-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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-casino__faq-item.active .page-casino__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* News Section */
.page-casino__news-section {
  padding: 80px 20px;
}

.page-casino__news-section .page-casino__section-title {
  color: #ffffff;
}

.page-casino__news-section .page-casino__section-description {
  color: #f0f8ff;
}

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

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

.page-casino__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.page-casino__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-casino__news-content {
  padding: 20px;
}

.page-casino__news-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-casino__news-link {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__news-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-casino__news-content p {
  font-size: 15px;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-casino__news-date {
  font-size: 13px;
  color: #999999;
}

.page-casino__view-all-news {
  text-align: center;
  margin-top: 50px;
}

/* --- Responsive Design --- */

/* All images base responsive style */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons base responsive style */
.page-casino__cta-button,
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button containers base responsive style */
.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .page-casino__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-casino__featured-game-image {
    height: 400px; /* Adjust height for larger tablets */
  }

  .page-casino__games-tabs {
    justify-content: center;
  }

  .page-casino__game-overview-card {
    flex: 0 0 280px; /* Adjust width for tablets */
  }

  .page-casino__quick-links-section .page-casino__links-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 28px;
  }

  .page-casino__section-description {
    font-size: 16px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__hero-section {
    padding-top: 0 !important;
  }
  
  .page-casino__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-casino__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }

  .page-casino__logo-carousel {
    gap: 12px;
  }
  
  .page-casino__logo-item a {
    padding: 8px;
  }

  .page-casino__games-section {
    padding: 40px 15px;
  }
  
  .page-casino__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-casino__featured-game-title {
    font-size: 24px;
    text-align: center;
  }
  
  .page-casino__featured-game-image {
    height: 300px;
  }
  
  .page-casino__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  
  .page-casino__games-tab {
    font-size: 16px;
  }
  
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-casino__game-card-image {
    height: 150px;
  }
  
  .page-casino__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-casino__introduction-section,
  .page-casino__quick-links-section,
  .page-casino__main-games-section,
  .page-casino__promotions-section,
  .page-casino__security-support-section,
  .page-casino__faq-section,
  .page-casino__news-section {
    padding: 40px 15px;
  }

  .page-casino__container {
    padding: 0;
  }

  .page-casino__links-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .page-casino__link-card span {
    font-size: 14px;
  }

  .page-casino__game-overview-card {
    flex: 0 0 250px;
  }

  .page-casino__game-overview-card img {
    
  }

  .page-casino__game-overview-card h3 {
    font-size: 18px;
  }

  .page-casino__game-overview-card p {
    font-size: 14px;
  }

  .page-casino__promo-grid,
  .page-casino__features-grid,
  .page-casino__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__promo-card img {
    
  }

  .page-casino__promo-card h3 {
    font-size: 20px;
  }

  .page-casino__feature-item img {
    
    
  }

  .page-casino__feature-item h3 {
    font-size: 18px;
  }

  .page-casino__faq-question {
    padding: 15px;
  }
  
  .page-casino__faq-question h3 {
    font-size: 15px;
  }
  
  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  .page-casino__news-card img {
    
  }

  .page-casino__news-content h3 {
    font-size: 18px;
  }
}

/* Ensure all general content images are responsive */
.page-casino__content-area img,
.page-casino p img,
.page-casino li img,
.page-casino__card img,
.page-casino__feature-item img,
.page-casino__promo-card img,
.page-casino__news-card img,
.page-casino__game-overview-card img,
.page-casino__link-card img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Exclude .page-casino__logo-item from general width: 100% rule */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container:not(.page-casino__logo-carousel-container) {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__logo-carousel-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  
  .page-casino__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
}