/* style/casino.css */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (var(--black-color)), so text is white */
  background-color: var(--black-color); /* Ensure content area uses a dark background */
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  background: linear-gradient(135deg, #26A9E0, #1a7bb0);
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 600px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-casino__hero-content {
  flex: 1;
  max-width: 600px;
  padding-left: 20px;
  color: #ffffff;
}

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 20px;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: block;
  filter: none; /* Ensure no filter is applied */
}

/* General Section Styles */
.page-casino__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light text for dark backgrounds */
  text-align: center;
}

.page-casino__dark-section .page-casino__text-block {
  color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-casino__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb0;
  border-color: #1a7bb0;
  transform: translateY(-2px);
}

/* About Section */
.page-casino__about-section {
  background-color: #0d0d0d;
  padding: 80px 0;
  text-align: center;
}

.page-casino__about-section .page-casino__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-casino__game-card {
  background-color: #262626;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-casino__game-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
  color: #5bc0de;
}

.page-casino__game-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

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

/* Promo Section */
.page-casino__promo-section {
  background-color: #26A9E0;
  padding: 80px 0;
  text-align: center;
}

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

.page-casino__promo-section .page-casino__text-block {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__promo-image {
  width: 100%;
  max-width: 300px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

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

.page-casino__promo-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promo-title a:hover {
  color: #f0f0f0;
}

.page-casino__promo-description {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Advantages Section */
.page-casino__advantages-section {
  padding: 80px 0;
  background-color: #0d0d0d;
}

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

.page-casino__advantage-item {
  background-color: #262626;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__advantage-icon {
  width: 200px; /* Adjusted to meet min size requirement */
  height: 150px; /* Adjusted to meet min size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  filter: none; /* Ensure no filter is applied */
}

.page-casino__advantage-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-casino__advantage-description {
  font-size: 1em;
  color: #cccccc;
}

/* Download App Section */
.page-casino__download-app-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-casino__download-app-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-casino__download-text {
  flex: 1;
  min-width: 300px;
}

.page-casino__download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-casino__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  display: block;
  filter: none; /* Ensure no filter is applied */
}

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

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #26A9E0;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #1a7bb0;
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  margin-left: 20px;
  line-height: 1;
}

.page-casino__faq-item[open] .page-casino__faq-question {
  background-color: #1a7bb0;
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #cccccc;
  background-color: #333333;
}

.page-casino__faq-answer p {
  margin-bottom: 10px;
}

.page-casino__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Contact CTA Section */
.page-casino__contact-cta-section {
  background-color: #26A9E0;
  padding: 60px 0;
  text-align: center;
}

.page-casino__contact-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__contact-cta-section .page-casino__section-title,
.page-casino__contact-cta-section .page-casino__text-block {
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__advantage-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    flex-direction: column;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 40px;
  }
  .page-casino__hero-content {
    padding: 0 20px;
    max-width: 100%;
  }
  .page-casino__hero-image-wrapper {
    padding: 0 20px;
    margin-top: 40px;
  }
  .page-casino__hero-title {
    font-size: 2.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 {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__advantage-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__game-image,
  .page-casino__promo-image {
    height: auto;
  }

  /* Force responsive for all images, videos, and containers */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__download-app-content,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-casino__download-app-content {
    flex-direction: column;
  }
  .page-casino__download-text,
  .page-casino__download-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-casino__advantage-icon {
    width: 100% !important;
    max-width: 200px !important;
    height: auto !important;
  }
  /* FAQ section mobile padding */
  .page-casino__faq-item {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}