.page-casino {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #1A1A1A;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-casino__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-casino__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__text-content--light {
  color: #f0f0f0;
}

.page-casino__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  font-size: 1.1em;
  cursor: pointer;
}

.page-casino__button--primary {
  background-color: #FFD700;
  color: #1A1A1A;
}

.page-casino__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-casino__button--secondary {
  background-color: #1A1A1A;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-casino__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

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

.page-casino__button--small {
  padding: 8px 18px;
  font-size: 0.95em;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.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);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.page-casino__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.page-casino__hero-description {
  font-size: 1.5em;
  max-width: 800px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-casino__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

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

.page-casino__game-card {
  background-color: #fefefe;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-casino__game-title {
  font-size: 1.6em;
  color: #1A1A1A;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
}

/* Promo Section */
.page-casino__promo-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #ffffff;
}

.page-casino__promo-section .page-casino__section-title {
  color: #FFD700;
}

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

.page-casino__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-casino__promo-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__promo-description {
  font-size: 1em;
  color: #cccccc;
  padding: 0 15px;
  flex-grow: 1;
}

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

/* Login Register Section */
.page-casino__login-register-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-casino__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
}

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

.page-casino__step-description {
  font-size: 1.1em;
  color: #555555;
}

/* Mobile Section */
.page-casino__mobile-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #ffffff;
}

.page-casino__mobile-section .page-casino__section-title {
  color: #FFD700;
}

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

.page-casino__mobile-text {
  flex: 1;
  min-width: 300px;
}

.page-casino__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* Security Section */
.page-casino__security-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-casino__security-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: 10px;
}

/* Support Section */
.page-casino__support-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #ffffff;
}

.page-casino__support-section .page-casino__section-title {
  color: #FFD700;
}

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

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

.page-casino__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-casino__advantage-item {
  background-color: #fefefe;
  border-left: 5px solid #FFD700;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  color: #333333;
}

.page-casino__advantage-item strong {
  color: #1A1A1A;
}

/* CTA Section */
.page-casino__cta-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #ffffff;
  text-align: center;
}

.page-casino__cta-section .page-casino__section-title {
  color: #FFD700;
}

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

@media (max-width: 768px) {
  .page-casino {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-casino__hero-title {
    font-size: 2.5em;
  }
  .page-casino__hero-description {
    font-size: 1.1em;
  }
  .page-casino__hero-actions {
    flex-direction: column;
  }
  .page-casino__button {
    width: 80%;
    margin: 10px auto;
  }
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-casino__text-content {
    font-size: 1em;
    padding: 0 10px;
  }
  .page-casino__game-grid, .page-casino__promo-grid, .page-casino__steps-grid, .page-casino__advantage-list {
    grid-template-columns: 1fr;
  }
  .page-casino__mobile-content {
    flex-direction: column;
  }
  .page-casino__mobile-image {
    max-width: 100%;
  }
  /* Mobile image constraint */
  .page-casino__hero-image, 
  .page-casino__game-image, 
  .page-casino__promo-image, 
  .page-casino__mobile-image, 
  .page-casino__security-image, 
  .page-casino__container img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-title {
    font-size: 2em;
  }
  .page-casino__hero-description {
    font-size: 0.9em;
  }
  .page-casino__button--large {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-casino__section-title {
    font-size: 1.5em;
  }
  .page-casino__game-title, .page-casino__promo-title, .page-casino__step-title {
    font-size: 1.4em;
  }
  .page-casino__game-description, .page-casino__promo-description, .page-casino__step-description {
    font-size: 0.9em;
  }
}

/* Ensure all content images are at least 200px wide/high */
.page-casino__hero-image[width], .page-casino__hero-image[height],
.page-casino__game-image[width], .page-casino__game-image[height],
.page-casino__promo-image[width], .page-casino__promo-image[height],
.page-casino__mobile-image[width], .page-casino__mobile-image[height],
.page-casino__security-image[width], .page-casino__security-image[height],
.page-casino__container img[width], .page-casino__container img[height] {
  min-width: 200px;
  min-height: 200px;
}

/* Specific overrides for smaller image displays while maintaining min size */
.page-casino__promo-image {
  width: 100%; 
  height: 220px; 
  object-fit: cover;
}

@media (max-width: 768px) {
  .page-casino__promo-image {
    width: 100%; 
    height: auto; 
    min-height: 200px;
  }
  .page-casino__game-image {
    width: 100%;
    height: auto;
    min-height: 200px;
  }
  .page-casino__security-image {
    width: 100%;
    height: auto;
    min-height: 200px;
  }
  .page-casino__mobile-image {
    width: 100%;
    height: auto;
    min-height: 200px;
  }
}