/* style/casino.css */
.page-casino {
  color: #ffffff; /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-casino__dark-bg {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards/elements */
  color: #ffffff;
  border-radius: 8px;
  padding: 20px;
}

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

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

/* General Section Styling */
.page-casino__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 60px;
}

.page-casino__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__btn-tertiary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-tertiary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

/* Features Section */
.page-casino__features-section {
  padding: 80px 0;
}

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

.page-casino__feature-card {
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__feature-icon {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__feature-text {
  color: #e0e0e0;
  font-size: 0.95em;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
}

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

.page-casino__game-category-title {
  font-size: 2em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
}

.page-casino__game-card {
  display: flex;
  align-items: center;
  gap: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__game-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text order */
}

.page-casino__game-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 150px;
}

.page-casino__game-info {
  width: 50%;
  padding: 20px 0;
}

.page-casino__game-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

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

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

.page-casino__promo-card {
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__promo-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__promo-text {
  color: #e0e0e0;
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__security-item-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__security-item-text {
  color: #e0e0e0;
}

/* Mobile Section */
.page-casino__mobile-section {
  padding: 80px 0;
}

.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-casino__mobile-image {
  width: 50%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  min-width: 200px;
  min-height: 150px;
}

.page-casino__mobile-text {
  width: 50%;
}

.page-casino__mobile-subtitle {
  font-size: 2em;
  color: #017439;
  margin-bottom: 20px;
}

.page-casino__mobile-paragraph {
  color: #e0e0e0;
  margin-bottom: 30px;
}

/* Payments Section */
.page-casino__payments-section {
  padding: 80px 0;
}

.page-casino__payment-methods {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
}

.page-casino__payment-item {
  text-align: center;
  flex: 1 1 200px;
  max-width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__payment-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-casino__payment-name {
  font-size: 1.1em;
  color: #017439;
  font-weight: bold;
}

.page-casino__payment-note {
  text-align: center;
  color: #f0f0f0;
  margin-top: 40px;
  font-style: italic;
}

/* Support Section */
.page-casino__support-section {
  padding: 80px 0;
}

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

.page-casino__channel-item {
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__channel-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__channel-text {
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__responsible-list {
  list-style: disc inside;
  color: #f0f0f0;
  max-width: 600px;
  margin: 30px auto;
  text-align: left;
  font-size: 1.1em;
}

.page-casino__responsible-item {
  margin-bottom: 10px;
}

.page-casino__responsible-text {
  color: #f0f0f0;
  font-style: italic;
  margin-top: 30px;
}

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

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question-text {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  color: #ffffff;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px;
}

.page-casino__faq-answer-text {
  color: #e0e0e0;
  margin: 0;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__game-card {
    flex-direction: column;
  }

  .page-casino__game-card:nth-child(even) {
    flex-direction: column; /* Reset for mobile */
  }

  .page-casino__game-image,
  .page-casino__game-info {
    width: 100%;
  }

  .page-casino__mobile-content {
    flex-direction: column;
  }

  .page-casino__mobile-image,
  .page-casino__mobile-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 60px 15px;
  }

  .page-casino__hero-title {
    font-size: 2em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }

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

  .page-casino__features-grid,
  .page-casino__promotions-grid,
  .page-casino__security-list,
  .page-casino__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-card,
  .page-casino__promo-card,
  .page-casino__security-item,
  .page-casino__channel-item {
    padding: 20px;
  }

  .page-casino__game-card {
    padding: 15px;
  }

  .page-casino__game-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }

  .page-casino__game-info {
    width: 100% !important;
  }

  .page-casino__mobile-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }

  .page-casino__mobile-text {
    width: 100% !important;
  }

  .page-casino__payment-methods {
    flex-direction: column;
    align-items: center;
  }

  .page-casino__payment-item {
    max-width: 100%;
    width: 100%;
  }

  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__features-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__mobile-section,
  .page-casino__payments-section,
  .page-casino__support-section,
  .page-casino__responsible-gambling-section,
  .page-casino__faq-section,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile hero */
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}