/* style/casino-table-games.css */

/* Base styles for the page content */
.page-casino-table-games {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #FFFFFF; /* Explicitly setting background for content area */
}

/* Hero Section */
.page-casino-table-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Black background for hero */
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-casino-table-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-casino-table-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area */
  opacity: 0.4; /* Slightly dim the background image */
  filter: brightness(0.6); /* Further dim to ensure text readability */
}

.page-casino-table-games__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-casino-table-games__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino-table-games__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino-table-games__hero-button {
  display: inline-block;
  padding: 15px 30px;
  margin: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__hero-button--register {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
}

.page-casino-table-games__hero-button--register:hover {
  background-color: #F0F0F0;
  color: #333333;
}

.page-casino-table-games__hero-button--login {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-casino-table-games__hero-button--login:hover {
  background-color: #E0A83B;
  color: #000000;
}

/* General Section Styles */
.page-casino-table-games__intro-section,
.page-casino-table-games__games-showcase,
.page-casino-table-games__why-choose-us,
.page-casino-table-games__getting-started,
.page-casino-table-games__responsible-gaming,
.page-casino-table-games__conclusion-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-casino-table-games__section-title {
  font-size: 2.8em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-casino-table-games__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: justify;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino-table-games__game-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino-table-games__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-casino-table-games__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #E0E0E0;
}

.page-casino-table-games__game-title {
  font-size: 1.6em;
  color: #000000;
  padding: 20px 20px 10px;
  margin: 0;
}

.page-casino-table-games__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 20px 20px;
  flex-grow: 1; /* Allows description to take available space */
}

.page-casino-table-games__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  background-color: #FCBC45;
  color: #000000;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-casino-table-games__game-button:hover {
  background-color: #E0A83B;
}

/* Why Choose Us Section */
.page-casino-table-games__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino-table-games__feature-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #E0E0E0;
  transition: transform 0.3s ease;
}

.page-casino-table-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-casino-table-games__feature-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-casino-table-games__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Getting Started Section */
.page-casino-table-games__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino-table-games__step-item {
  background-color: #F8F8F8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #FCBC45;
}

.page-casino-table-games__step-title {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-casino-table-games__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-casino-table-games__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-casino-table-games__cta-button {
  display: inline-block;
  padding: 18px 40px;
  background-color: #FCBC45;
  color: #000000;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-casino-table-games__cta-button:hover {
  background-color: #E0A83B;
  transform: translateY(-3px);
}

/* Responsible Gaming Section */
.page-casino-table-games__responsible-gaming {
  background-color: #F0F0F0;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  margin-top: 60px;
}

.page-casino-table-games__responsible-gaming-link {
  display: inline-block;
  margin-top: 20px;
  color: #000000;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-casino-table-games__responsible-gaming-link:hover {
  color: #FCBC45;
  border-color: #000000;
}

/* Conclusion Section */
.page-casino-table-games__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-casino-table-games__conclusion-button {
  display: inline-block;
  padding: 20px 45px;
  background-color: #000000;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

.page-casino-table-games__conclusion-button:hover {
  background-color: #333333;
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino-table-games__hero-title {
    font-size: 3em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1.1em;
  }
  .page-casino-table-games__section-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-casino-table-games {
    padding-top: var(--header-offset, 120px); /* Ensure mobile header offset */
  }
  .page-casino-table-games__hero-section {
    padding: 60px 15px;
  }
  .page-casino-table-games__hero-title {
    font-size: 2.5em;
  }
  .page-casino-table-games__hero-description {
    font-size: 1em;
  }
  .page-casino-table-games__hero-button {
    padding: 12px 25px;
    font-size: 1em;
    margin: 0 5px 15px;
  }
  .page-casino-table-games__game-grid,
  .page-casino-table-games__features-grid,
  .page-casino-table-games__steps {
    grid-template-columns: 1fr;
  }
  .page-casino-table-games__game-image,
  .page-casino-table-games__game-card .page-casino-table-games__game-image,
  .page-casino-table-games__feature-item img,
  .page-casino-table-games__step-item img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px; /* Enforce minimum size for content images */
  }
  .page-casino-table-games__section-title {
    font-size: 2em;
  }
  .page-casino-table-games__game-title {
    font-size: 1.4em;
  }
  .page-casino-table-games__feature-title {
    font-size: 1.6em;
  }
  .page-casino-table-games__step-title {
    font-size: 1.3em;
  }
  .page-casino-table-games__cta-button,
  .page-casino-table-games__conclusion-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-casino-table-games__hero-title {
    font-size: 2em;
  }
  .page-casino-table-games__hero-description {
    font-size: 0.9em;
  }
  .page-casino-table-games__hero-button {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
  .page-casino-table-games__section-title {
    font-size: 1.8em;
  }
  .page-casino-table-games__game-title {
    font-size: 1.2em;
  }
  .page-casino-table-games__feature-title {
    font-size: 1.4em;
  }
  .page-casino-table-games__step-title {
    font-size: 1.2em;
  }
  .page-casino-table-games__cta-button,
  .page-casino-table-games__conclusion-button {
    font-size: 1em;
    padding: 12px 25px;
  }
}