/* style/casino.css */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Explicitly set to match shared.css body background */
}

/* Fixed header offset - apply to the first main section */
.page-casino__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-casino__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Brand color for titles */
}

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

.page-casino__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

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

.page-casino__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video for text readability */
}

.page-casino__video-link {
  display: block; /* Make the whole video clickable */
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

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

.page-casino__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text,
.page-casino a[class*="button"],
.page-casino a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping initially */
  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;
  border-color: #a30606;
}

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

.page-casino__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-casino__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-casino__btn-login {
  background-color: #017439;
  color: #FFFFFF;
  border-color: #017439;
}

.page-casino__btn-text {
  color: #017439;
  text-decoration: underline;
  padding: 0;
  background: none;
  border: none;
}

.page-casino__btn-text:hover {
  color: #005a2d;
}

/* General Sections */
.page-casino__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-casino__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-casino__dark-section {
  background-color: #1a1a1a; /* Darker background for contrast with #121212 */
  color: #ffffff;
}

/* About Section */
.page-casino__about-section .page-casino__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__about-section .page-casino__text-block {
  flex: 1;
}

.page-casino__about-section .page-casino__image-block {
  flex: 1;
  text-align: center;
}

.page-casino__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto; /* Center image if smaller than container */
}

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

.page-casino__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark sections */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.page-casino__light-bg .page-casino__card {
  background: #ffffff;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-casino__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for card titles */
}

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

.page-casino__card-title a {
  color: inherit; /* Inherit color from parent */
  text-decoration: none;
}

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

.page-casino__card-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1; /* Allow description to take available space */
}

.page-casino__light-bg .page-casino__card-description {
  color: #333333;
}

/* Promotions Section */
.page-casino__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* Mobile Section */
.page-casino__mobile-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__mobile-content {
  flex: 1;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-casino__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  text-align: left;
}

.page-casino__mobile-feature-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #FFFF00; /* Custom color for highlights */
  font-weight: bold;
}

/* Security Section */
.page-casino__security-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

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

.page-casino__guide-step {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #C30808; /* Custom register color */
  color: #FFFF00; /* Custom font color */
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid #017439; /* Brand color border */
}

.page-casino__guide-step .page-casino__step-title {
  margin-top: 30px;
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-casino__guide-step .page-casino__step-description {
  color: #f0f0f0;
}

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

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark sections */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__light-bg .page-casino__faq-item {
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  cursor: pointer;
  background-color: rgba(1, 116, 57, 0.8); /* Brand color with transparency */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-casino__light-bg .page-casino__faq-question {
  color: #333333;
  background-color: #e6f7ed; /* Lighter brand color */
  border-bottom: 1px solid #d0e8d8;
}

.page-casino__faq-question:hover {
  background-color: rgba(1, 116, 57, 1);
}

.page-casino__light-bg .page-casino__faq-question:hover {
  background-color: #d0e8d8;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-casino__light-bg .page-casino__faq-answer {
  color: #333333;
}

.page-casino__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 20px;
}

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

/* Links in content */
.page-casino p a,
.page-casino li a {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
}

.page-casino p a:hover,
.page-casino li a:hover {
  color: #FFD700;
}

/* Image styling - ensuring no small icons and no filters */
.page-casino img {
  border-radius: 8px; /* Example style */
  /* NO filter property allowed for changing colors */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 2.8em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 2.2em;
  }
  .page-casino__section-subtitle {
    font-size: 1em;
  }
  .page-casino__about-section .page-casino__container,
  .page-casino__mobile-container {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__about-section .page-casino__image-block,
  .page-casino__mobile-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  /* Ensure all images are responsive and do not overflow */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}