/* General Styles */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Page Background */
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

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

.page-casino__section-text {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 25px;
}

.page-casino__section-text--light {
  color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-casino__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-casino__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #F4F7FB; /* Page Background */
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  background-color: #2F6BFF; /* Fallback background */
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.page-casino__hero-title {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section */
.page-casino__intro-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Page Background */
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Main Color */
}

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

.page-casino__game-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__game-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-casino__game-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-casino__game-card .page-casino__btn-secondary {
  margin-top: auto;
  align-self: center;
}

/* Advantages Section */
.page-casino__advantages-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Page Background */
}

.page-casino__advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__advantage-item {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-casino__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filters */
}

.page-casino__advantage-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__advantage-description {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Main Color */
}

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

.page-casino__promo-card {
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-casino__promo-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-casino__promo-description {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

/* Join Section */
.page-casino__join-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Page Background */
}

.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-casino__step-item {
  background: #ffffff; /* Card BG */\  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-casino__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 15px;
  line-height: 1.6;
  color: #333333;
  flex-grow: 1;
  margin-bottom: 25px;
}

.page-casino__step-item .page-casino__btn-secondary {
  margin-top: auto;
}

/* FAQ Section */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border Color */
  overflow: hidden;
  background: #fff;
}
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;
}
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: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Banner */
.page-casino__cta-banner {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main Color */
  text-align: center;
}

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

.page-casino__cta-banner .page-casino__section-title,
.page-casino__cta-banner .page-casino__section-text {
  margin-bottom: 25px;
}

.page-casino__cta-banner .page-casino__btn-primary {
  margin-top: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__container {
    padding: 20px 30px;
  }

  .page-casino__hero-section {
    min-height: 400px;
  }

  .page-casino__hero-title {
    font-size: clamp(34px, 4.5vw, 48px);
  }

  .page-casino__hero-description {
    font-size: 18px;
  }

  .page-casino__game-grid,
  .page-casino__advantages-grid,
  .page-casino__steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

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

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

  .page-casino__game-title {
    font-size: 22px;
  }

  .page-casino__advantage-title {
    font-size: 20px;
  }

  .page-casino__promo-title {
    font-size: 22px;
  }

  .page-casino__step-title {
    font-size: 20px;
  }

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

  .page-casino__cta-banner {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-casino__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section padding */
  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__advantages-section,
  .page-casino__promotions-section,
  .page-casino__join-section,
  .page-casino__faq-section,
  .page-casino__cta-banner {
    padding: 40px 0;
  }

  /* Hero Section */
  .page-casino__hero-section {
    min-height: 350px;
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-casino__hero-image {
    object-fit: contain; /* Banner 849px contain */
  }

  .page-casino__hero-content {
    padding: 20px 15px;
  }

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

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

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

  /* Buttons - General mobile adaptation */
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__cta-center {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-casino__cta-center .page-casino__btn-primary,
  .page-casino__cta-center .page-casino__btn-secondary {
    width: 100%;
  }

  /* Section titles and text */
  .page-casino__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-casino__section-text {
    font-size: 15px;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* Games Grid */
  .page-casino__game-grid,
  .page-casino__advantages-grid,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-casino__game-card {
    padding-bottom: 20px;
  }

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

  .page-casino__game-title {
    font-size: 20px;
    padding: 0 15px;
  }

  .page-casino__game-description {
    font-size: 14px;
    padding: 0 15px;
  }

  /* Advantages */
  .page-casino__advantage-item {
    padding: 25px;
  }

  .page-casino__advantage-title {
    font-size: 18px;
  }

  /* Promotions */
  .page-casino__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
  }

  .page-casino__promo-card {
    padding: 25px;
  }

  .page-casino__promo-title {
    font-size: 20px;
  }

  /* Join Steps */
  .page-casino__step-item {
    padding: 25px;
  }

  .page-casino__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-casino__step-title {
    font-size: 18px;
  }

  /* FAQ */
  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: 20px;
    width: 24px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Banner */
  .page-casino__cta-banner {
    padding: 50px 0;
  }

  .page-casino__cta-banner-content {
    padding: 0 15px;
  }

  .page-casino__cta-banner .page-casino__btn-primary--large {
    font-size: 18px;
    padding: 15px 30px;
    width: 100%;
  }

  /* Mobile image specific rules */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-casino__hero-buttons,
  .page-casino__game-grid,
  .page-casino__advantages-grid,
  .page-casino__promo-cards,
  .page-casino__steps-grid {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    flex-wrap: wrap !important; /* Ensure multiple buttons/items wrap */
  }
}

@media (max-width: 480px) {
  .page-casino__hero-section {
    min-height: 300px;
  }

  .page-casino__hero-title {
    font-size: clamp(28px, 9vw, 36px);
  }

  .page-casino__hero-description {
    font-size: 14px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-casino__section-title {
    font-size: clamp(22px, 8vw, 28px);
  }

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

  .page-casino__game-title {
    font-size: 18px;
  }

  .page-casino__advantage-icon {
    width: 80px;
    height: 80px;
  }

  .page-casino__advantage-title {
    font-size: 17px;
  }

  .page-casino__promo-title,
  .page-casino__step-title {
    font-size: 18px;
  }

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