/* style/casino.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #222222;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-casino__section-description {
  font-size: 18px;
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__button--primary {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-casino__button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__button--secondary {
  background: var(--secondary-color);
  color: var(--text-color-light);
}

.page-casino__button--secondary:hover {
  background: #6b0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-casino__button--small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-casino__button--small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-color-light);
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
  background-color: var(--background-dark);
}

.page-casino__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-casino__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  display: block;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
}

.page-casino__hero-title {
  font-size: 52px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-casino__about-item {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__about-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-casino__about-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-casino__about-item h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-casino__about-item p {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-casino__games-section .page-casino__section-title {
  color: var(--primary-color);
}

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

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

.page-casino__game-card {
  background: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

.page-casino__game-card .page-casino__game-link {
  display: block;
  padding: 20px 15px 10px;
  text-decoration: none;
  color: var(--text-color-light);
}

.page-casino__game-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-casino__view-all-games-cta {
  text-align: center;
  margin-top: 60px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

.page-casino__promo-card h3 {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 20px 15px 10px;
}

.page-casino__promo-card p {
  font-size: 15px;
  color: var(--text-color-dark);
  padding: 0 15px 20px;
}

.page-casino__promo-card .page-casino__button--small {
  margin-bottom: 20px;
}

.page-casino__view-all-promos-cta {
  text-align: center;
  margin-top: 60px;
}

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

.page-casino__responsible-gaming-section .page-casino__section-title {
  margin-bottom: 20px;
}

.page-casino__responsible-gaming-section .page-casino__section-description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* How to Get Started Section */
.page-casino__get-started-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-casino__get-started-section .page-casino__section-title {
  color: var(--primary-color);
}

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

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

.page-casino__step-item {
  background: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  padding: 30px;
  text-align: center;
  position: relative;
}

.page-casino__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-color-light);
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__step-item h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__step-item p {
  font-size: 16px;
  color: #cccccc;
}

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

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.page-casino__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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: var(--text-color-dark);
}

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  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: var(--primary-color);
  transform: rotate(45deg);
}

/* Global image rules for content area - ensure min size and no filters */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filters are applied to images */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 44px;
  }

  .page-casino__hero-description {
    font-size: 20px;
  }

  .page-casino__section-title {
    font-size: 32px;
  }
}

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

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-section {
    min-height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-casino__hero-content {
    padding: 20px 15px;
  }

  .page-casino__hero-title {
    font-size: 36px;
  }

  .page-casino__hero-description {
    font-size: 18px;
  }

  .page-casino__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 28px;
    padding-top: 30px;
  }

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

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__responsible-gaming-section,
  .page-casino__get-started-section,
  .page-casino__faq-section {
    padding: 40px 0;
  }

  .page-casino__about-grid,
  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-casino__about-item,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-item {
    padding: 20px;
  }

  .page-casino__about-item img,
  .page-casino__game-card img,
  .page-casino__promo-card img {
    
  }

  .page-casino__about-item h3,
  .page-casino__game-card h3,
  .page-casino__promo-card h3,
  .page-casino__step-item h3 {
    font-size: 20px;
  }

  .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-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive and do not overflow */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__hero-image-wrapper,
  .page-casino__about-section .page-casino__container,
  .page-casino__games-section .page-casino__container,
  .page-casino__promotions-section .page-casino__container,
  .page-casino__responsible-gaming-section .page-casino__container,
  .page-casino__get-started-section .page-casino__container,
  .page-casino__faq-section .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 30px;
  }

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

  .page-casino__button {
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-casino__section-title {
    font-size: 24px;
  }

  .page-casino__about-item h3,
  .page-casino__game-card h3,
  .page-casino__promo-card h3,
  .page-casino__step-item h3 {
    font-size: 18px;
  }
}