.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text is light */
  background-color: #1a1a2e;
}

.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-casino__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-casino__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-casino__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  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: #a00606;
  transform: translateY(-2px);
}

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

.page-casino__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-casino__section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__introduction-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

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

.page-casino__section-title {
  font-size: 2.8em;
  margin-bottom: 40px;
  color: #FFFF00; /* Custom color for section titles */
  line-height: 1.2;
}

.page-casino__text-block {
  max-width: 900px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: left;
}

.page-casino__text-block p {
  margin-bottom: 1em;
}

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

.page-casino__game-card,
.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-casino__game-card .page-casino__card-title,
.page-casino__promo-card .page-casino__card-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin: 20px 20px 10px 20px;
}

.page-casino__game-card .page-casino__card-description,
.page-casino__promo-card .page-casino__card-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-secondary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

.page-casino__live-casino-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 50px;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
}

.page-casino__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__start-guide-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-casino__guide-step {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-casino__guide-icon {
  font-size: 3em;
  font-weight: bold;
  color: #FFFF00;
  margin-bottom: 20px;
  background: #C30808;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino__guide-title {
  font-size: 1.8em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-casino__guide-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__guide-step .page-casino__btn-secondary {
  width: auto;
  margin-top: auto;
}

.page-casino__faq-section {
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

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

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

.page-casino__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-casino__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 120px;
}

.page-casino__floating-btn--register {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color */
}

.page-casino__floating-btn--register:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-casino__floating-btn--login {
  background-color: #017439;
  color: #ffffff;
}

.page-casino__floating-btn--login:hover {
  background-color: #005f2e;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__main-title {
    font-size: 2.8em;
  }

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

  .page-casino__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-casino__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    margin-bottom: 30px;
  }

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

  .page-casino__card-image {
    height: 180px;
  }

  .page-casino__video-wrapper {
    margin-top: 30px;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__floating-buttons {
    flex-direction: row;
    bottom: 10px;
    left: 10px;
    right: 10px;
    justify-content: space-around;
    width: auto;
  }

  .page-casino__floating-btn {
    flex: 1;
    margin: 0 5px;
    min-width: unset;
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: 1.8em;
  }

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

  .page-casino__guide-icon {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
  }

  .page-casino__guide-title {
    font-size: 1.5em;
  }

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

  .page-casino__faq-answer {
    padding: 10px 15px 15px 15px;
  }
}