.page-casino {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Body background color */
  line-height: 1.6;
}

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

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #E53935; /* Brand color for hero background */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-casino__hero-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-casino__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  color: #ffffff; /* White text on brand color background */
  z-index: 1; /* Ensure text is above image if any slight overlap occurs, but primarily image-above-text */
}

.page-casino__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-casino__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

/* General Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* For responsive buttons */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-casino__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
}

.page-casino__btn-small:hover {
  opacity: 0.9;
}

.page-casino__btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
}

/* Section Titles & Descriptions */
.page-casino__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #333333; /* Default for light background */
}

.page-casino__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

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

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

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

.page-casino__about-text p {
  margin-bottom: 15px;
}

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

.page-casino__about-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #E53935; /* Brand color for dark background */
  color: #ffffff; /* White text on dark background */
}

.page-casino__games-section .page-casino__section-title,
.page-casino__games-section .page-casino__section-description {
  color: #ffffff;
}

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

.page-casino__game-card {
  background-color: #ffffff; /* White card background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

.page-casino__game-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 15px 15px 10px;
  color: #E53935; /* Brand color for card title */
}

.page-casino__game-card-title a {
  color: #E53935;
  text-decoration: none;
}

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

.page-casino__game-card-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-small {
  margin: 0 15px 15px;
  align-self: flex-start;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
}

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

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

.page-casino__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-casino__promo-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 15px 15px 10px;
  color: #E53935;
}

.page-casino__promo-card-title a {
  color: #E53935;
  text-decoration: none;
}

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

.page-casino__promo-card-description {
  font-size: 0.95em;
  margin: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-small {
  margin: 0 15px 15px;
  align-self: flex-start;
}

/* Advantages Section */
.page-casino__advantages-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
}

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

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

.page-casino__advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  border-radius: 8px;
}

.page-casino__advantage-icon {
  width: 200px; /* Ensure minimum display size */
  height: 200px; /* Ensure minimum display size */
  object-fit: contain; /* Icons might be square, contain to prevent cropping */
  margin-bottom: 20px;
}

.page-casino__advantage-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-casino__advantage-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-casino__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__cta-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 60px 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-casino__cta-box .page-casino__section-title {
  margin-bottom: 25px;
}

.page-casino__cta-box .page-casino__section-description {
  margin-bottom: 40px;
}

/* Utility classes for background/text color consistency */
.page-casino__dark-bg {
  background-color: #E53935;
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-casino__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }
  .page-casino__about-content {
    flex-direction: column;
    text-align: center;
  }
  .page-casino__about-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Images responsive (mandatory) */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive (mandatory) */
  .page-casino__hero-image-wrapper,
  .page-casino__about-image-wrapper,
  .page-casino__game-card-image,
  .page-casino__promo-card-image,
  .page-casino__advantage-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Sections and containers responsive (mandatory) */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__advantages-section,
  .page-casino__cta-section,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__advantage-item,
  .page-casino__cta-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Buttons responsive (mandatory) */
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-small,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Add padding to prevent text touching edges */
    padding-right: 15px;
  }

  .page-casino__hero-cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-casino__games-section .page-casino__game-card-image,
  .page-casino__promotions-section .page-casino__promo-card-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-casino__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 40px;
  }

  .page-casino__advantage-icon {
    width: 200px !important; /* Must be >= 200px */
    height: 200px !important;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-casino__game-card-title,
  .page-casino__promo-card-title {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-content {
    padding: 20px 10px;
  }
  .page-casino__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-casino__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }
  .page-casino__btn-large {
    font-size: 1em;
  }
}