/* style/casino.css */

/* Base styles */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Body background is white */
}

.page-casino__section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439; /* Brand color for titles */
  margin-bottom: 10px;
}

.page-casino__section-title--light {
  color: #ffffff; /* White for dark backgrounds */
}

.page-casino__section-subtitle {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto;
}

.page-casino__section-subtitle--light {
  color: #f0f0f0;
}

/* Buttons */
.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Custom Register/Login color */
  color: #FFFF00; /* Custom Register/Login font color */
  border: 2px solid #C30808;
}

.page-casino__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-casino__btn-secondary {
  background-color: #FFFFFF;
  color: #C30808; /* Custom Register/Login color */
  border: 2px solid #C30808;
}

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

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #FFFFFF;
  position: relative;
  overflow: hidden;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__hero-content {
  max-width: 900px;
  margin-bottom: 40px;
  z-index: 2;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* H1 font size clamp */
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 1.2em;
  color: #555555;
  max-width: 700px;
  margin: 0 auto 30px;
}

.page-casino__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 20px;
  z-index: 1;
}

.page-casino__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Video Section */
.page-casino__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  background-color: #f8f8f8;
  text-align: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__video-wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 40px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-casino__video-description {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 1.1em;
  color: #555555;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure full width on desktop */
}

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

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size as per rules */
  min-height: 200px;
}

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

.page-casino__game-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-casino__game-btn {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
  width: calc(100% - 30px);
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 20px;
  background-color: #017439; /* Dark background */
  color: #ffffff;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%; /* Ensure full width on desktop */
}

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

.page-casino__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size as per rules */
  min-height: 200px;
}

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

.page-casino__promo-description {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

/* Security Section */
.page-casino__security-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  width: 100%; /* Ensure full width on desktop */
}

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

.page-casino__feature-icon {
  width: 200px; /* Enforce min size as per rules */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-casino__feature-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 0.95em;
  color: #666666;
}

/* Final CTA Section */
.page-casino__cta-final-section {
  padding: 80px 20px;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__cta-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%; /* Ensure full width on desktop */
}

.page-casino__cta-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: #ffffff;
  margin-bottom: 20px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-image-container {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 2em;
  }

  .page-casino__main-title {
    font-size: clamp(2em, 6vw, 2.5em);
  }

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

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

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__cta-final-section {
    padding: 40px 15px;
  }
  
  .page-casino__video-section {
    padding-top: 10px !important;
  }

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

  .page-casino__hero-image,
  .page-casino__game-image,
  .page-casino__promo-image {
    height: auto !important; /* Allow height to adjust */
    min-height: 150px; /* Ensure images are not too small visually */
  }

  .page-casino__feature-icon {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px !important; /* Still larger than 200px if original is, but scaled */
    min-height: 100px !important;
  }

  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-casino__video-wrapper .page-casino__video,
  .page-casino__video-wrapper .page-casino__video-link {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__video-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-section,
  .page-casino__cta-final-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;
    overflow: hidden !important;
  }
  
  /* Specific override for hero-image-container to ensure padding */
  .page-casino__hero-image-container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-casino__game-card, .page-casino__promo-card, .page-casino__feature-item {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure images within cards/features adhere to min size if not explicitly set */
.page-casino__game-card img, .page-casino__promo-card img, .page-casino__feature-item img {
  min-width: 200px;
  min-height: 200px;
}