.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for clarity, though body is default white */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding-top: var(--header-offset, 120px);
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.4em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-casino__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__dark-bg .page-casino__section-description {
  color: #f0f0f0;
}

.page-casino__dark-bg .page-casino__card-title a {
  color: #ffffff;
}

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

.page-casino__light-bg .page-casino__section-title {
  color: #017439;
}

.page-casino__light-bg .page-casino__section-description {
  color: #555555;
}

.page-casino__light-bg .page-casino__card-title a {
  color: #017439;
}

.page-casino__about-section,
.page-casino__games-overview,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__responsible-gambling-section,
.page-casino__faq-section,
.page-casino__cta-bottom {
  padding: 80px 0;
}

.page-casino__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-casino__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-casino__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-casino__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__card-title a {
  text-decoration: none;
  color: #017439; /* For light background cards */
}

.page-casino__dark-bg .page-casino__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-casino__dark-bg .page-casino__card-title a {
  color: #ffffff;
}

.page-casino__card-text {
  font-size: 1em;
  color: #666666;
}

.page-casino__dark-bg .page-casino__card-text {
  color: #f0f0f0;
}

.page-casino__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
}

.page-casino__game-category--reverse {
  flex-direction: row-reverse;
}

.page-casino__game-content {
  flex: 1;
  text-align: left;
}

.page-casino__game-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-casino__game-title {
  font-size: 2em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-casino__game-title a {
  text-decoration: none;
  color: #ffffff;
}

.page-casino__game-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-casino__game-button {
  background-color: #C30808; /* Use primary button style */
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-casino__game-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-casino__security-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-casino__security-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
}

.page-casino__security-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__security-item p {
  color: #f0f0f0;
}

.page-casino__responsible-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__responsible-heading {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
}

.page-casino__responsible-item p {
  color: #666666;
}

.page-casino__center-text {
  text-align: center;
  margin-top: 40px;
}

.page-casino__learn-more-button {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__learn-more-button:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #fdfdfd;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  color: #017439;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #f0f0f0;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  transition: transform 0.3s ease;
  color: #017439;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-casino__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-casino__cta-bottom {
  text-align: center;
}

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

.page-casino__cta-bottom .page-casino__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 3em;
  }
  .page-casino__hero-description {
    font-size: 1.2em;
  }
  .page-casino__game-category {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__game-category--reverse {
    flex-direction: column;
  }
  .page-casino__game-image {
    max-width: 100%;
  }
  .page-casino__game-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-casino__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
  .page-casino__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__card {
    padding: 20px;
  }
  .page-casino__game-category,
  .page-casino__grid-3-cols,
  .page-casino__grid-2-cols,
  .page-casino__security-list {
    grid-template-columns: 1fr;
  }
  .page-casino__game-category {
    padding: 20px;
  }
  .page-casino__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }
  .page-casino__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 10px 20px;
  }
  .page-casino__about-section,
  .page-casino__games-overview,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__responsible-gambling-section,
  .page-casino__faq-section,
  .page-casino__cta-bottom {
    padding: 40px 0;
  }
  .page-casino__container {
    padding: 0 15px;
  }
  /* Ensure all image/button/video containers are responsive */
  .page-casino__card,
  .page-casino__game-category,
  .page-casino__security-item,
  .page-casino__responsible-item,
  .page-casino__faq-item,
  .page-casino__cta-bottom .page-casino__cta-buttons,
  .page-casino__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* For safety */
  }
}