.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for content area */
}

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

.page-casino__section-title {
  font-size: 36px;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__cta-button:hover {
  background: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button--register {
  background: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
  margin-right: 15px;
}

.page-casino__cta-button--register:hover {
  background: #a30707;
}

.page-casino__cta-button--login {
  background: #C30808; /* Custom color for login */
  color: #FFFF00; /* Custom font color for login */
}

.page-casino__cta-button--login:hover {
  background: #a30707;
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border: 2px solid #017439;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-casino__dark-section {
  background-color: #017439;
  color: #ffffff;
  padding: 60px 0;
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__text-block,
.page-casino__dark-section h3 {
  color: #ffffff;
}

.page-casino__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
}

.page-casino__dark-section .page-casino__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23ffffff"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #017439, #005a2e);
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-casino__hero-title {
  font-size: 48px;
  color: #FFFF00; /* Custom font color for hero title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
}

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

.page-casino__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__game-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
  line-height: 1.3;
}

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

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

.page-casino__game-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Live Casino Section */
.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-casino__live-casino-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

.page-casino__live-casino-text {
  flex: 2;
  min-width: 300px;
  text-align: left;
}

.page-casino__live-casino-text .page-casino__text-block {
  text-align: left;
}

/* Promotions Section */
.page-casino__promotions-banner {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.page-casino__promo-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-casino__promo-card h3 {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__promo-card h3 a {
  color: #017439;
  text-decoration: none;
}

.page-casino__promo-card h3 a:hover {
  text-decoration: underline;
}

.page-casino__promo-card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Security Section */
.page-casino__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap-reverse;
}

.page-casino__security-text {
  flex: 2;
  min-width: 300px;
  text-align: left;
}

.page-casino__security-text .page-casino__text-block {
  text-align: left;
}

.page-casino__security-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: auto;
}

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

.page-casino__support-item {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-casino__support-item h3 {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}

.page-casino__support-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsible Gambling Section */
.page-casino__responsible-gambling-section .page-casino__text-block {
  margin-bottom: 30px;
}

.page-casino__responsible-gambling-section .page-casino__cta-button {
  margin-top: 0;
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-casino__faq-item:last-child .page-casino__faq-question {
  border-bottom: none;
}

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

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(0deg);
  color: #C30808;
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Ensure enough space */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #e0e0e0;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

/* CTA Download Section */
.page-casino__cta-download-section {
  text-align: center;
  padding: 80px 0;
  background-color: #f5f5f5; /* Light background for contrast */
}

.page-casino__cta-download-content {
  max-width: 800px;
}

.page-casino__cta-button--download {
  background: #C30808; /* Custom color for download button */
  color: #FFFF00; /* Custom font color for download button */
}

.page-casino__cta-button--download:hover {
  background: #a30707;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 40px;
  }
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__games-grid,
  .page-casino__promo-cards,
  .page-casino__support-grid {
    gap: 20px;
  }
  .page-casino__game-image {
    height: 180px;
  }
  .page-casino__live-casino-content,
  .page-casino__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-casino__live-casino-text,
  .page-casino__security-text {
    text-align: center;
  }
  .page-casino__live-casino-text .page-casino__text-block,
  .page-casino__security-text .page-casino__text-block {
    text-align: center;
  }
  .page-casino__feature-list {
    text-align: center;
  }
  .page-casino__feature-list li {
    background-position: center left;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-title {
    font-size: 32px;
  }
  .page-casino__hero-description {
    font-size: 16px;
  }
  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-casino__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }
  .page-casino__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-casino__text-block {
    font-size: 15px;
    padding: 0 10px;
  }
  .page-casino__games-grid,
  .page-casino__promo-cards,
  .page-casino__support-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }
  .page-casino__game-image {
    height: 160px;
  }
  .page-casino__game-title {
    font-size: 20px;
  }
  .page-casino__promo-card h3 {
    font-size: 20px;
  }
  .page-casino__support-item h3 {
    font-size: 20px;
  }
  .page-casino__live-casino-image,
  .page-casino__security-image {
    min-width: unset;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-question h3 {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-casino__faq-answer {
    padding: 0 20px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__cta-download-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__cta-download-section {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 28px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__game-image {
    height: 140px;
  }
  .page-casino__faq-question h3 {
    font-size: 15px;
  }
}