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

/* General styles for the casino page */
.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 15px;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

/* Text contrast fix for light background sections */
.page-casino__text-contrast-fix {
  color: #333333; /* For light background sections */
}

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg .page-casino__section-description,
.page-casino__light-bg .page-casino__text-contrast-fix,
.page-casino__light-bg .page-casino__category-title a,
.page-casino__light-bg .page-casino__category-text,
.page-casino__light-bg .page-casino__security-title,
.page-casino__light-bg .page-casino__security-text,
.page-casino__light-bg .page-casino__payment-title,
.page-casino__light-bg .page-casino__payment-text {
  color: #333333; /* Ensure dark text on light background */
}

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

.page-casino__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-casino__btn-secondary:hover {
  background: rgba(46, 122, 78, 0.2);
  transform: translateY(-2px);
}

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

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  background-color: var(--bg-color);
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height */
  overflow: hidden;
  position: relative;
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
}

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

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__intro-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section (Dark BG) */
.page-casino__dark-section {
  background-color: var(--card-bg);
  padding: 80px 0;
  color: var(--text-main);
}

.page-casino__light-bg {
  background-color: #ffffff; /* White background for contrast */
  padding: 80px 0;
  color: #333333; /* Dark text for light background */
}

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

.page-casino__feature-card {
  background-color: var(--bg-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-casino__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-casino__feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--glow-color);
}

.page-casino__feature-text {
  font-size: 16px;
  color: var(--text-secondary);
}

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

.page-casino__category-card {
  background-color: #f9f9f9; /* Light background for card on light section */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for light background */
  text-align: center;
}

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

.page-casino__category-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--deep-green-color);
}

.page-casino__category-title a {
  color: var(--deep-green-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__category-title a:hover {
  color: var(--main-color);
}

.page-casino__category-text {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 20px;
}

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

.page-casino__promotion-card {
  background-color: var(--bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  text-align: center;
}

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

.page-casino__promotion-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--glow-color);
}

.page-casino__promotion-title a {
  color: var(--glow-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__promotion-title a:hover {
  color: var(--main-color);
}

.page-casino__promotion-text {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 0 15px 20px;
}

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

.page-casino__security-item {
  background-color: #f9f9f9; /* Light background for card on light section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-casino__security-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-casino__security-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--deep-green-color);
}

.page-casino__security-text {
  font-size: 16px;
  color: #555555;
}

/* Mobile Section */
.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-casino__mobile-text {
  flex: 1;
  color: var(--text-main);
}

.page-casino__mobile-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-casino__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-casino__mobile-features li {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-main);
}

.page-casino__mobile-features li::before {
  content: '✔';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__mobile-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-casino__cta-buttons--mobile {
  justify-content: flex-start;
}

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

.page-casino__payment-method-card {
  background-color: #f9f9f9; /* Light background for card on light section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-casino__payment-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

.page-casino__payment-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--deep-green-color);
}

.page-casino__payment-text {
  font-size: 16px;
  color: #555555;
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-color);
  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;
  color: var(--text-main);
}
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(46, 122, 78, 0.2); /* Lighter hover for dark background */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  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-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: var(--card-bg); /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}
.page-casino__faq-answer p {
  margin: 0;
}