/* -------------------------------------------------------------------------- */
/*                              Base Styles                                 */
/* -------------------------------------------------------------------------- */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  line-height: 1.6;
}

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

.page-casino__section {
  padding: 60px 0;
  text-align: center;
  background-color: #B71C1C; /* Background */
}

.page-casino__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #FFD86A; /* Gold gradient start for prominence */
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF5E1;
}

.page-casino__light-bg .page-casino__text-block {
  color: #333333;
}

.page-casino a {
  color: #FFD86A;
  text-decoration: none;
}

.page-casino a:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/*                                 Buttons                                  */
/* -------------------------------------------------------------------------- */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  max-width: 100%; /* Ensure button takes full width if needed */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button Gold Gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold */
  border: 2px solid #FFD86A; /* Gold Border */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background-color: rgba(255, 216, 106, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------------------------------- */
/*                               Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-casino__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* Adjusted for shared body padding */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  background-color: #C91F17; /* Primary Color */
}

.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; /* Default for desktop */
  filter: brightness(0.7);
  display: block;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

.page-casino__main-title {
  font-size: clamp(36px, 5vw, 60px);
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-casino__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-casino__game-card {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border Gold */
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  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: 15px;
  display: block;
}

.page-casino__game-title {
  font-size: 24px;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-casino__game-btn {
  margin: 0 15px;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
}

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

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

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #C91F17; /* Primary Color */
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/*                               Guide Section                              */
/* -------------------------------------------------------------------------- */
.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border Gold */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  margin-bottom: 15px;
}

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

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

.page-casino__promotion-item {
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border Gold */
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
}

.page-casino__promotion-item p {
  font-size: 16px;
  color: #FFF5E1;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                              */
/* -------------------------------------------------------------------------- */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border Gold */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF5E1;
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #E53935; /* Auxiliary Color */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold */
}
.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 5px 5px;
  color: #FFF5E1;
  text-align: left;
}
.page-casino__faq-answer p {
  margin: 0;
  padding-top: 10px;
  font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/*                             Responsive Styles                            */
/* -------------------------------------------------------------------------- */

/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-casino__container {
    padding: 15px;
  }

  .page-casino__section {
    padding: 40px 0;
  }

  .page-casino__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }

  .page-casino__subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-casino__section-title {
    font-size: clamp(24px, 3.5vw, 36px);
  }

  .page-casino__text-block {
    font-size: 17px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__game-btn {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-casino__games-grid,
  .page-casino__features-grid,
  .page-casino__guide-steps,
  .page-casino__promotion-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .page-casino__game-title,
  .page-casino__feature-title,
  .page-casino__step-title,
  .page-casino__promotion-title {
    font-size: 20px;
  }

  .page-casino__faq-qtext {
    font-size: 17px;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  .page-casino__container {
    padding: 15px;
  }

  .page-casino__section {
    padding: 30px 0;
  }

  /* HERO Section - Mobile */
  .page-casino__hero-section {
    min-height: 500px;
    padding-top: 10px; /* Small top padding, body handles header offset */
  }

  .page-casino__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    height: auto !important; /* Allow height to adjust */
    position: relative;
    width: 100%;
    max-width: 100%;
  }

  .page-casino__hero-image-wrapper {
    position: relative;
    height: auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio placeholder */
    overflow: hidden;
  }

  .page-casino__hero-content {
    padding: 15px;
    margin-top: -50px; /* Pull content up slightly over image if image is taller */
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-casino__subtitle {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 25px;
  }

  /* CTA Buttons - Mobile */
  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__game-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Section Titles - Mobile */
  .page-casino__section-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 20px;
    padding: 0 15px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-casino__text-block {
    font-size: 16px;
    padding: 0 15px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Games Grid - Mobile */
  .page-casino__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    overflow-x: hidden !important;
  }

  .page-casino__game-card {
    margin: 0 auto;
    max-width: 350px;
  }

  .page-casino__game-image {
    height: 180px;
  }

  /* Features Grid - Mobile */
  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  /* Guide Steps - Mobile */
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  /* Promotions List - Mobile */
  .page-casino__promotion-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  /* FAQ Section - Mobile */
  details.page-casino__faq-item {
    margin: 0 15px 15px 15px;
  }
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }
  .page-casino__faq-qtext {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }
  .page-casino__faq-answer p {
    font-size: 15px;
  }

  /* General Images - Mobile */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__feature-item,
  .page-casino__step-item,
  .page-casino__promotion-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */
    /* padding-right: 15px; */
  }
}

/* Ensure images within content areas do not overflow */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* General content area overflow prevention */
.page-casino__content-area, .page-casino__text-block {
  overflow-x: hidden;
}