:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --btn-login: #EA7C07;
}

.page-casino {
  font-family: Arial, sans-serif;
  color: var(--text-dark); /* Default text color for light body background */
  background: var(--secondary-color); /* Assuming body background is light */
  line-height: 1.6;
}

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

.page-casino__container--center {
  text-align: center;
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Responsive font size */
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-casino__sub-title {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-casino__content-area {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
}

.page-casino__content-area p {
  margin-bottom: 1em;
}

.page-casino__content-area ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1em;
}

.page-casino__content-area li {
  margin-bottom: 0.5em;
}

.page-casino__image-wrapper {
  margin: 30px auto;
  text-align: center;
  max-width: 100%;
}

.page-casino__image-wrapper--center {
  display: flex;
  justify-content: center;
}

.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-primary:hover {
  background: #1e8bc3;
  border-color: #1e8bc3;
}

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

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  padding-top: 10px; /* Assuming body has padding-top from shared */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-casino__hero-image {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  overflow: hidden;
}

.page-casino__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop to fill for desktop */
  border-radius: 0;
}

.page-casino__hero-content {
  position: relative; /* Not absolute, for upper-image-lower-text */
  text-align: center;
  padding: 40px 20px;
  background: var(--secondary-color); /* Ensure text is on a light background */
}

.page-casino__main-title {
  font-size: clamp(36px, 5vw, 56px); /* Ensure H1 is responsive and not fixed large */
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-description {
  font-size: 20px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-casino__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  max-width: 600px;
  margin: 0 auto;
}

/* --- Game Categories --- */
.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: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-casino__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 0; /* No border-radius on images inside card for clean look */
}

.page-casino__card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-casino__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-casino__game-card p {
  font-size: 16px;
  color: #666;
  padding: 0 20px;
  flex-grow: 1;
}

.page-casino__card-link {
  display: block;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 12px 20px;
  margin: 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino__card-link:hover {
  background: #1e8bc3;
}

/* --- Promotions Section --- */
.page-casino__promotions .page-casino__section-description {
  margin-bottom: 20px;
}

.page-casino__promotion-card {
  display: flex;
  background: var(--bg-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 1000px;
  margin: 40px auto 0;
}

.page-casino__promotion-card img {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.page-casino__promotion-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-casino__promotion-content .page-casino__card-title {
  margin-top: 0;
  font-size: 28px;
}

.page-casino__promotion-content p {
  font-size: 17px;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

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

.page-casino__feature-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-casino__feature-item .page-casino__sub-title {
  margin-top: 0;
  font-size: 24px;
}

.page-casino__feature-item p {
  font-size: 16px;
  color: #666;
}

/* --- FAQ Section (Details/Summary based) --- */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  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; /* Increased font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color); /* Use primary color for question text */
}
.page-casino__faq-toggle {
  font-size: 28px; /* Increased font size */
  font-weight: bold;
  color: var(--primary-color); /* Use primary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Increased size */
  height: 30px; /* Increased size */
  display: flex;
  align-items: center;
  justify-content: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  font-size: 16px;
  color: #555;
}
.page-casino__faq-answer p {
  margin-bottom: 0;
}
.page-casino__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-casino__faq-answer a:hover {
  text-decoration: none;
}


/* --- CTA Bottom Section --- */
.page-casino__cta-bottom {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e8bc3 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-casino__cta-bottom .page-casino__section-title {
  color: var(--text-light);
  margin-bottom: 25px;
}

.page-casino__cta-bottom .page-casino__section-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  font-size: 19px;
}

.page-casino__cta-bottom .page-casino__btn-primary {
  background: var(--btn-login); /* Use login color for primary CTA */
  border-color: var(--btn-login);
}

.page-casino__cta-bottom .page-casino__btn-primary:hover {
  background: #d66b06;
  border-color: #d66b06;
}

.page-casino__cta-bottom .page-casino__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-casino__cta-bottom .page-casino__btn-secondary:hover {
  background: var(--text-light);
  color: var(--primary-color);
}

/* --- Responsive Design (Mobile: max-width: 768px) --- */
@media (max-width: 768px) {
  /* General */
  .page-casino__section {
    padding: 40px 0;
  }

  .page-casino__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-casino__sub-title {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-casino__content-area {
    font-size: 16px;
  }

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

  .page-casino__image-wrapper {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-casino__hero-buttons,
  .page-casino__cta-bottom .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to container */
  }

  /* Hero Section */
  .page-casino__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    margin-bottom: 20px;
  }

  .page-casino__hero-image {
    height: 250px; /* Adjust height for mobile */
  }

  .page-casino__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
  }

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

  .page-casino__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  /* Game Categories */
  .page-casino__game-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-casino__game-card img {
     /* Adjust card image height */
  }

  .page-casino__card-title {
    font-size: 20px;
    margin: 15px 15px 8px;
  }

  .page-casino__game-card p {
    font-size: 15px;
    padding: 0 15px;
  }

  .page-casino__card-link {
    margin: 15px;
    padding: 10px 15px;
  }

  /* Promotions Section */
  .page-casino__promotion-card {
    flex-direction: column;
    max-width: 100%;
    margin: 20px auto 0;
  }

  .page-casino__promotion-card img {
    width: 100%;
    height: 200px; /* Adjust height for mobile */
  }

  .page-casino__promotion-content {
    width: 100%;
    padding: 20px;
  }

  .page-casino__promotion-content .page-casino__card-title {
    font-size: 24px;
    text-align: center;
  }

  .page-casino__promotion-content p {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }

  .page-casino__promotion-content .page-casino__btn-primary {
    max-width: 80%; /* Smaller button in card */
    margin: 0 auto;
  }

  /* Why Choose Us Section */
  .page-casino__feature-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-casino__feature-item {
    padding: 20px;
  }

  .page-casino__feature-item .page-casino__sub-title {
    font-size: 20px;
  }

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

  /* CTA Bottom Section */
  .page-casino__cta-bottom {
    padding: 50px 0;
  }

  .page-casino__cta-bottom .page-casino__section-title {
    font-size: 30px;
  }

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

/* --- Responsive Design (Tablet: max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__hero-image {
    height: 450px;
  }

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

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

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

  .page-casino__promotion-card {
    flex-direction: column;
    max-width: 700px;
  }

  .page-casino__promotion-card img,
  .page-casino__promotion-content {
    width: 100%;
  }

  .page-casino__promotion-card img {
    height: 300px;
  }

  .page-casino__promotion-content {
    padding: 25px;
  }

  .page-casino__promotion-content .page-casino__card-title {
    font-size: 26px;
  }

  .page-casino__game-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }

  .page-casino__feature-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }
}

/* --- Specific for hero image containment on smaller desktop/tablet before mobile transition (e.g. 849px) --- */
@media (max-width: 849px) {
  .page-casino__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible, not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
  }
  .page-casino__hero-image {
    height: auto; /* Allow height to adjust to content */
  }
  .page-casino__hero-content {
    padding-top: 20px; /* Reduce padding when image is above */
  }
}