.page-casino {
  color: #ffffff; /* Dark body background #0a0a0a, so light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure body background is respected */
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* shared already gives body padding-top, so hero uses 0 */
  margin-top: 0;
  width: 100%;
}

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

.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: #0a2463; /* Dark background for contrast with logos */
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.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;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  animation: scrollLogos 20s linear infinite;
}

.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: #ffffff;
  border: 1px solid #e0e0e0;
  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, 0, 0, 0.12);
}

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

@keyframes scrollLogos {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* GAMES Showcase Section */
.page-casino__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #0a0a0a;
}

.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: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700;
  text-align: left;
}

.page-casino__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  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.15);
}

.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: #ffd700; /* Use auxiliary color for active tab */
  text-decoration: underline;
}

.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: #1a3a73; /* Darker card background for games */
  border: 1px solid #0A2463;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  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.15);
}

.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; /* Light text on dark card background */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* General Content Sections */
.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-casino__title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #ffd700; /* Auxiliary color for main titles */
}

.page-casino__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-casino__text {
  font-size: 16px;
  text-align: justify;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-casino__dark-section {
  background: #0A2463;
  padding: 80px 0;
  color: #ffffff;
}

.page-casino__light-bg {
  background: #ffffff;
  padding: 80px 0;
  color: #333333;
}

.page-casino__light-bg .page-casino__title, 
.page-casino__light-bg .page-casino__description, 
.page-casino__light-bg .page-casino__text {
  color: #333333;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: #ffd700;
  color: #0A2463;
  border: 2px solid #ffd700;
}

.page-casino__btn-primary:hover {
  background: #ffc107;
  border-color: #ffc107;
}

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

.page-casino__btn-secondary:hover {
  background: #ffd700;
  color: #0A2463;
}

.page-casino__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Game Category Section */
.page-casino__games-category-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

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

.page-casino__category-card {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-casino__category-card .page-casino__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0A2463;
  padding: 0 15px;
}

.page-casino__category-card .page-casino__card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__category-card .page-casino__btn-secondary {
  margin-top: auto;
  width: calc(100% - 30px);
  max-width: 200px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background: #0A2463;
  color: #ffffff;
}

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

.page-casino__promo-card {
  background: #1a3a73;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-casino__promo-card .page-casino__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffd700;
  padding: 0 15px;
}

.page-casino__promo-card .page-casino__card-description {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin-top: auto;
  width: calc(100% - 30px);
  max-width: 200px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__security-list li {
  background: #f0f0f0;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  color: #333333;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-casino__security-list li strong {
  color: #0A2463;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  padding: 80px 0;
  background: #0A2463;
  color: #ffffff;
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.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 15px;
  opacity: 0;
}

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

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

.page-casino__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: #0A2463;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0A2463, #1a3a73);
  color: #ffffff;
  text-align: center;
}

/* Responsive Design */
/* Tablet Layout */
@media (max-width: 1024px) {
  .page-casino__title {
    font-size: 32px;
  }
  .page-casino__description {
    font-size: 16px;
  }
  .page-casino__text {
    font-size: 15px;
  }
  .page-casino__games-layout {
    grid-template-columns: 1fr;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-casino__featured-game-image {
    height: 400px;
  }
  .page-casino__game-card-image {
    height: 180px;
  }
  .page-casino__category-grid, .page-casino__promotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-casino__category-card img {
    
  }
  .page-casino__promo-card img {
    height: 200px;
  }
}

/* Mobile Layout */
@media (max-width: 768px) {
  /* HERO Section */
  .page-casino__hero-section {
    padding-top: 0 !important;
  }
  .page-casino__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* LOGO Carousel Section */
  .page-casino__logo-carousel-section {
    padding: 20px 15px !important;
  }
  .page-casino__logo-carousel {
    gap: 12px !important;
  }
  .page-casino__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box !important;
    margin: 0 !important; /* Ensure no extra margins */
  }
  .page-casino__logo-item a {
    padding: 8px !important;
  }

  /* GAMES Showcase Section */
  .page-casino__games-section {
    padding: 40px 15px !important;
  }
  .page-casino__games-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-casino__featured-game-title {
    font-size: 20px !important;
  }
  .page-casino__featured-game-image {
    height: 300px !important;
  }
  .page-casino__games-tabs {
    gap: 15px !important;
  }
  .page-casino__games-tab {
    font-size: 16px !important;
  }
  .page-casino__games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .page-casino__game-card-image {
    height: 150px !important;
  }
  .page-casino__game-card-title {
    font-size: 13px !important;
    margin: 8px 0 0 0 !important;
    padding: 0 3px 8px !important;
  }

  /* General Image and Container Rules */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__container,
  .page-casino__intro-section,
  .page-casino__games-category-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__responsible-gaming-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-casino__dark-section, .page-casino__light-bg {
    padding: 50px 0 !important;
  }

  /* Button and Button Container Rules */
  .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% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  .page-casino__btn-large {
    padding: 15px 30px !important;
    font-size: 18px !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: 0 !important;
    padding-right: 0 !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* Other Content Modules */
  .page-casino__title {
    font-size: 28px !important;
  }
  .page-casino__description {
    font-size: 15px !important;
  }
  .page-casino__text {
    font-size: 14px !important;
  }
  .page-casino__category-grid, .page-casino__promotion-grid {
    grid-template-columns: 1fr !important;
  }
  .page-casino__category-card img {
    
  }
  .page-casino__promo-card img {
    
  }
  .page-casino__security-list {
    padding: 0 10px !important;
  }
  .page-casino__security-list li {
    font-size: 14px !important;
    padding: 12px 15px !important;
  }

  /* FAQ Section */
  .page-casino__faq-question {
    padding: 15px !important;
    flex-wrap: wrap !important;
  }
  .page-casino__faq-question h3 {
    font-size: 15px !important;
    margin-bottom: 0 !important;
    width: calc(100% - 40px) !important;
  }
  .page-casino__faq-toggle {
    margin-left: 10px !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 20px !important;
  }
  .page-casino__faq-answer {
    padding: 0 15px !important;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }
}