:root {
  --main-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-color);
}

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

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

.page-casino__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main);
}

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

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__section-description,
.page-casino__light-bg .page-casino__guide-step,
.page-casino__light-bg .page-casino__step-title,
.page-casino__light-bg .page-casino__step-description,
.page-casino__light-bg .page-casino__why-choose-item,
.page-casino__light-bg .page-casino__why-choose-title,
.page-casino__light-bg .page-casino__why-choose-description {
  color: #333333;
}

.page-casino__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-casino__section-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Aligned with fixed header rule */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; 
  overflow: hidden;
}

.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; 
  display: block;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #ffffff; 
  padding: 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.4); 
  border-radius: 10px;
}

.page-casino__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
  color: var(--text-main);
  font-size: clamp(32px, 5vw, 56px); 
}

.page-casino__intro-text {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
}

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--glow);
  border: 2px solid var(--glow);
}

.page-casino__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
}

/* Button containers */
.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Game Grid Section */
.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: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px; 
  object-fit: cover;
  display: block;
}

.page-casino__game-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--text-main);
}

.page-casino__game-card-description {
  font-size: 15px;
  margin: 0 20px 20px;
  color: var(--text-secondary);
}

.page-casino__game-card-link {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 20px;
  background-color: var(--deep-green);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__game-card-link:hover {
  background-color: var(--main-color);
}

/* Promotions Section */
.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.05); 
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--text-main);
}

.page-casino__promo-card-description {
  font-size: 15px;
  margin: 0 20px 20px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-casino__full-promo-link {
  margin-top: 40px;
}

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

.page-casino__guide-step {
  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__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333333;
}

.page-casino__step-description {
  font-size: 16px;
  color: #555555;
}

/* Why Choose Section */
.page-casino__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__why-choose-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-casino__why-choose-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333333;
}

.page-casino__why-choose-description {
  font-size: 15px;
  color: #555555;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main);
}
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: rgba(17, 168, 78, 0.1);
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--glow);
  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: var(--deep-green);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

/* Conclusion Section */
.page-casino__section--conclusion .page-casino__btn-primary,
.page-casino__section--conclusion .page-casino__btn-secondary {
  margin-top: 20px;
}

/* General image styling */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-casino__section-title {
    font-size: 32px;
  }

  .page-casino__intro-text {
    font-size: 18px;
  }

  .page-casino__game-grid,
  .page-casino__promo-grid,
  .page-casino__guide-steps,
  .page-casino__why-choose-grid {
    gap: 20px;
  }
}

@media (max-width: 849px) {
  .page-casino__hero-image {
    object-fit: contain !important; /* Force contain for mobile hero */
    aspect-ratio: unset !important; /* Remove aspect ratio constraint */
    height: auto !important; /* Allow height to adjust */
    max-height: 400px; /* Limit max height to prevent overly tall hero */
  }
  .page-casino__hero-image-wrapper {
    position: relative; /* Adjust for contain */
    height: auto; /* Adjust for contain */
  }
  .page-casino__hero-section {
    min-height: unset;
    padding-bottom: 40px;
  }
  .page-casino__hero-content {
    background: rgba(0, 0, 0, 0.6); /* Darker overlay for text on contain image */
  }
}

@media (max-width: 768px) {
  .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* HERO Section specific mobile rules */
  .page-casino__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }
  .page-casino__hero-image-wrapper {
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px); /* Smaller clamp for mobile */
    line-height: 1.3;
  }
  .page-casino__intro-text {
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: unset;
  }

  /* Product Grid (Game Grid) specific mobile rules */
  .page-casino__game-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns for game cards */
    gap: 15px;
    overflow-x: hidden; /* Ensure no horizontal scroll */
  }
  .page-casino__game-card {
    text-align: center;
  }
  .page-casino__game-card-image {
    height: 150px;
  }
  .page-casino__game-card-title {
    font-size: 18px;
    margin: 15px 10px 8px;
  }
  .page-casino__game-card-description {
    font-size: 14px;
    margin: 0 10px 15px;
  }
  .page-casino__game-card-link {
    padding: 8px 15px;
    font-size: 14px;
    margin: 0 10px 15px;
  }

  /* Promotions Section specific mobile rules */
  .page-casino__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
    overflow-x: hidden;
  }
  .page-casino__promo-card-image {
    height: 180px;
  }
  .page-casino__promo-card-title {
    font-size: 18px;
    margin: 15px 15px 8px;
  }
  .page-casino__promo-card-description {
    font-size: 14px;
    margin: 0 15px 15px;
  }
  .page-casino__promo-card .page-casino__btn-primary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }
  .page-casino__full-promo-link .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Guide Section specific mobile rules */
  .page-casino__guide-steps {
    grid-template-columns: 1fr; /* Single column for guide steps */
    gap: 20px;
  }
  .page-casino__guide-step {
    padding: 20px;
  }
  .page-casino__step-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-casino__step-title {
    font-size: 20px;
  }
  .page-casino__step-description {
    font-size: 14px;
  }

  /* Why Choose Section specific mobile rules */
  .page-casino__why-choose-grid {
    grid-template-columns: 1fr; /* Single column for why choose items */
    gap: 20px;
  }
  .page-casino__why-choose-item {
    padding: 20px;
  }
  .page-casino__why-choose-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  .page-casino__why-choose-title {
    font-size: 18px;
  }
  .page-casino__why-choose-description {
    font-size: 14px;
  }

  /* FAQ Section specific mobile rules */
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px;
  }
  .page-casino__faq-qtext {
    font-size: 15px;
  }
  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

  /* General content area images */
  .page-casino__section img,
  .page-casino__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Button containers mobile adaptation */
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-casino__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}