.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Body background is white */
}

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

/* Fixed header offset */
.page-casino__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

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

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

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-casino__hero-section .page-casino__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

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

.page-casino__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
  opacity: 0.9;
}

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

.page-casino__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* General Section Styles */
.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

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

.page-casino__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  opacity: 0.9;
}

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

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-casino__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-casino__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
}

.page-casino__game-category {
  margin-bottom: 60px;
}

.page-casino__game-category-title {
  font-size: 2em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 15px;
}

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

.page-casino__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-casino__game-name {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-casino__game-description {
  font-size: 0.95em;
  opacity: 0.8;
  flex-grow: 1;
  margin-bottom: 15px;
}

.page-casino__game-description-full {
  font-size: 1.1em;
  color: #ffffff;
  opacity: 0.9;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__btn-play {
  width: auto;
  align-self: center;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

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

.page-casino__promo-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

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

.page-casino__promo-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__promo-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Mobile Experience Section */
.page-casino__mobile-experience-section {
  padding: 80px 0;
}

.page-casino__mobile-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row;
}

.page-casino__mobile-text {
  flex: 1;
  text-align: left;
  color: #ffffff;
}

.page-casino__mobile-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

.page-casino__faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-casino__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-casino__btn-secondary:hover {
  background-color: #FFFF00;
  color: #017439; /* Text color when hovered */
}

/* General Section Padding */
.page-casino__why-choose-section, 
.page-casino__games-section, 
.page-casino__promotions-section, 
.page-casino__mobile-experience-section, 
.page-casino__faq-section, 
.page-casino__cta-section {
  padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section .page-casino__container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .page-casino__hero-content {
    text-align: center;
  }

  .page-casino__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino__hero-buttons .page-casino__btn-primary,
  .page-casino__hero-buttons .page-casino__btn-secondary {
    width: 100%;
  }

  .page-casino__section-title {
    font-size: 1.8em;
  }

  .page-casino__section-subtitle {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-casino__features-grid,
  .page-casino__game-grid,
  .page-casino__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-item,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__faq-item {
    padding: 20px;
  }

  .page-casino__mobile-content {
    flex-direction: column-reverse;
    gap: 30px;
  }

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

  .page-casino__mobile-text .page-casino__btn-primary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-casino__faq-answer {
    padding: 0 20px;
  }

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino__cta-buttons .page-casino__btn-primary,
  .page-casino__cta-buttons .page-casino__btn-secondary {
    width: 100%;
  }
  
  /* Image responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__why-choose-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__mobile-experience-section,
  .page-casino__faq-section,
  .page-casino__cta-section,
  .page-casino__hero-buttons,
  .page-casino__cta-buttons,
  .page-casino__feature-item,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsive */
  .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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Ensure no horizontal scroll from content */
  .page-casino > section {
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 1.8em;
  }
  .page-casino__section-title {
    font-size: 1.6em;
  }
  .page-casino__hero-buttons,
  .page-casino__cta-buttons {
    gap: 10px;
  }
}