.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

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

.page-casino__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  padding: 60px 20px; /* Base padding */
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  overflow: hidden;
  background: linear-gradient(135deg, #017439, #004d26);
}

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

.page-casino__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-casino__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.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;
  border-color: #a00606;
}

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

.page-casino__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #004d26;
  border-color: #004d26;
}

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

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

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.8;
  text-align: justify;
}

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

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

.page-casino__highlight {
  font-weight: bold;
  color: #FFFF00; /* Highlight color for keywords */
}

/* About Section */
.page-casino__about-section .page-casino__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-casino__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  font-weight: bold;
  color: #FFFF00;
}

.page-casino__card-description {
  font-size: 1em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__card-link {
  display: block;
  padding: 12px 15px;
  background-color: #C30808;
  color: #FFFF00;
  text-decoration: none;
  font-weight: bold;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-casino__card-link:hover {
  background-color: #a00606;
}

/* Live Casino Section */
.page-casino__live-casino-section .page-casino__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Advantages Section */
.page-casino__advantage-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__advantage-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

.page-casino__advantage-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

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

.page-casino__guide-grid .page-casino__card {
  background-color: #f8f8f8; /* Light background for guide cards */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__guide-grid .page-casino__card-title {
  color: #017439;
}

.page-casino__guide-grid .page-casino__card-description {
  color: #555555;
}

.page-casino__guide-grid .page-casino__card-link {
  background-color: #017439;
  color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.page-casino__guide-grid .page-casino__card-link:hover {
  background-color: #004d26;
}

/* Tips Section */
.page-casino__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__tips-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__tips-item p {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-casino__text-link {
  color: #FFFF00;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-casino__text-link:hover {
  color: #ffe000;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 40px;
}

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

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

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

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  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 20px;
  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 accommodate content */
  padding: 20px;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  text-align: center;
}

.page-casino__conclusion-section .page-casino__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__conclusion-section .page-casino__cta-buttons {
  margin-top: 40px;
}

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

  .page-casino__description {
    font-size: 1.1em;
  }

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

  .page-casino__advantage-title,
  .page-casino__tips-title {
    font-size: 1.5em;
  }
}

@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 header offset */
  }

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

  .page-casino__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-casino__card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

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

  .page-casino__card-title {
    font-size: 1.3em;
  }

  .page-casino__advantage-item,
  .page-casino__tips-item {
    padding: 20px;
  }

  .page-casino__advantage-title,
  .page-casino__tips-title {
    font-size: 1.3em;
  }

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

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

  /* Image and Video responsiveness */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__advantages-section,
  .page-casino__guide-section,
  .page-casino__tips-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  
  .page-casino__video-wrapper {
    padding-bottom: 75% !important; /* Adjust aspect ratio for mobile if needed, or keep 56.25% */
  }

  .page-casino__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}