/* style/casino.css */
/* BEM Naming: .page-casino__element-name */
/* Color Palette: Primary #26A9E0, Auxiliary #FFFFFF, Login #EA7C07, Background #FFFFFF, #000000 */

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

.page-casino__section {
  padding: 60px 20px;
  text-align: center;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for mobile responsiveness */
  box-sizing: border-box;
}

.page-casino__container--center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
}

.page-casino__heading {
  font-size: 36px;
  margin-bottom: 30px;
  color: #26A9E0; /* Primary brand color */
  font-weight: bold;
}

.page-casino__heading--white {
  color: #FFFFFF;
}

.page-casino__paragraph {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-casino__paragraph--white {
  color: #F0F0F0;
}

/* --- HERO SECTION --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Apply the offset for fixed header */
  background: linear-gradient(135deg, #26A9E0, #a0d9f4); /* Gradient background to match brand color */
  overflow: hidden; /* Prevent content overflow */
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; 
}

.page-casino__hero-image-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 30px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #FFFFFF;
  padding: 0 15px; /* Added for mobile responsiveness */
  box-sizing: border-box;
}

.page-casino__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-content p {
  font-size: 20px;
  margin-bottom: 40px;
  color: #F0F0F0;
}

/* --- BUTTONS --- */
.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to wrap */
}

.page-casino__btn-primary {
  background: #EA7C07; /* Login/Register button color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
  background: #d46f06;
  border-color: #d46f06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
  background: #e0f2f7;
  color: #1e87b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-casino__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%; /* Ensure container adapts to mobile */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- GAMES SECTION --- */
.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-casino__game-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #FFFFFF; /* Text on dark background */
}

.page-casino__game-title {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
  color: #26A9E0; /* Primary brand color */
}

.page-casino__game-title--white {
  color: #FFFFFF;
}

.page-casino__game-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-casino__game-description {
  font-size: 16px;
  line-height: 1.6;
}

.page-casino__game-description--white {
  color: #F0F0F0;
}

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

.page-casino__card {
  background: #FFFFFF;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-casino__card-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #26A9E0;
}

.page-casino__card-text {
  font-size: 16px;
  line-height: 1.6;
}

.page-casino__card--dark {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  border: 1px solid #1e87b6;
}

.page-casino__card-title--white {
  color: #FFFFFF;
}

.page-casino__card-text--white {
  color: #F0F0F0;
}

/* --- WHY CHOOSE SECTION --- */
.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-casino__feature-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* --- HOW TO JOIN SECTION --- */
.page-casino__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-casino__step-item {
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.6;
  border-left: 5px solid #26A9E0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__step-item strong {
  color: #26A9E0;
}

/* --- FAQ SECTION --- */
.page-casino__faq-section {
  text-align: left;
}

.page-casino__faq-list {
  margin-top: 40px;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.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; /* Ensure content expands */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}