/* style/casino.css */

/* Base styles for the casino page content */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

.page-casino__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-casino__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from parent section for contrast */
}

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

.page-casino__description,
.page-casino__description-small {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: inherit;
}

.page-casino__dark-bg .page-casino__description,
.page-casino__dark-bg .page-casino__description-small {
  color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 600px;
  overflow: hidden;
  text-align: center;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  order: 1; /* Image first */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-casino__hero-content {
  order: 2; /* Content after image */
  max-width: 900px;
  width: 100%; /* Ensure content block takes full width within max-width */
  padding: 30px 0;
  text-align: center;
  z-index: 1;
}

.page-casino__main-title {
  font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small,
.page-casino__btn-promo,
.page-casino__btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-casino__btn-text-link {
  background: none;
  border: none;
  padding: 0;
  color: #26A9E0;
  text-decoration: underline;
  font-weight: 600;
  margin-top: 15px;
  display: block;
  text-align: center;
}

.page-casino__btn-text-link:hover {
  color: #1a7fb0;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
}

.page-casino__content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-casino__text-block {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-casino__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-casino__image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-casino__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.page-casino__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
}

.page-casino__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 20px 15px 10px 15px;
  color: #26A9E0;
}

.page-casino__card-link {
  color: inherit;
  text-decoration: none;
}

.page-casino__card-link:hover {
  text-decoration: underline;
}

.page-casino__card-text {
  font-size: 0.95rem;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-casino__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-casino__btn-small:hover {
  background-color: #1a7fb0;
}

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

.page-casino__promo-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-casino__btn-promo {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #EA7C07;
  border-color: #EA7C07;
  padding: 18px 40px;
  font-size: 1.1rem;
  z-index: 2;
}

.page-casino__btn-promo:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
}

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

.page-casino__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-casino__advantage-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__advantage-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

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

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

.page-casino__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-casino__faq-item[open] {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none;
  position: relative;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-casino__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-casino__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
  line-height: 1.7;
}

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

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-casino__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 2rem;
  }
  .page-casino__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-casino__promo-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }
  .page-casino__btn-promo {
    padding: 15px 30px;
    font-size: 1rem;
    bottom: 20px;
  }
}

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

  .page-casino__hero-section {
    padding: 40px 15px;
    min-height: auto;
  }

  .page-casino__main-title {
    font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
  }

  .page-casino__description,
  .page-casino__description-small {
    font-size: 1rem;
    margin-left: 0;
    margin-right: 0;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-small,
  .page-casino__btn-promo,
  .page-casino__btn-text-link {
    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__container,
  .page-casino__hero-content,
  .page-casino__text-block,
  .page-casino__image-wrapper,
  .page-casino__game-grid,
  .page-casino__promo-wrapper,
  .page-casino__advantages-list,
  .page-casino__faq-list,
  .page-casino__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-casino__content-grid {
    flex-direction: column;
  }

  .page-casino__text-block, .page-casino__image-wrapper {
    min-width: unset;
  }

  .page-casino__game-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__card-image {
    height: 180px; /* Adjust for smaller screens */
  }

  .page-casino__btn-promo {
    position: static;
    transform: none;
    margin-top: 20px;
    display: block;
    width: auto;
  }

  .page-casino__section-title {
    font-size: 1.8rem;
  }

  .page-casino__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Ensure all images are responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Content area image size limit */
  .page-casino__content-area img,
  .page-casino__about-section img,
  .page-casino__games-section img,
  .page-casino__promotions-section img,
  .page-casino__why-choose-section img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

/* Image filter restriction */
.page-casino img {
  filter: none; /* Absolutely no CSS filters changing image colors */
}