/* style/casino.css */

/* Custom properties for colors from the prompt */
:root {
  --primary-color: #017439; /* Main color */
  --secondary-color: #FFFFFF; /* Auxiliary color */
  --register-btn-color: #C30808;
  --login-btn-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
}

/* Base styles for the page content, ensuring contrast with body background */
/* Assuming body background is light (var(--accent-color) is often light or white) */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-color); /* Explicitly set for content area if needed, otherwise transparent */
}

/* HERO Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Gradient for visual appeal */
  color: var(--text-light); /* Light text on dark background */
  overflow: hidden; /* Prevent content overflow */
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px; /* Rounded corners for the image */
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-casino__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light); /* White title on dark hero background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-casino__intro-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  color: var(--text-light); /* White text on dark hero background */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-casino__intro-description a {
  color: var(--register-login-font-color); /* Yellow for links */
  text-decoration: underline;
}

.page-casino__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Primary CTA Button */
.page-casino__btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--register-btn-color); /* Custom register color */
  color: var(--register-login-font-color); /* Custom font color for register/login */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--register-btn-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__btn-primary:hover {
  background: #E03C3C; /* Slightly lighter red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Secondary CTA Button (Login) */
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-btn-color); /* Custom login color */
  color: var(--register-login-font-color); /* Custom font color for register/login */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--login-btn-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__btn-secondary:hover {
  background: #E03C3C; /* Slightly lighter red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}


/* General Section Styles */
.page-casino__section {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Consistent padding */
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-casino__section-title--white {
  color: var(--text-light);
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.page-casino__text-block--white {
  color: var(--text-light);
}

.page-casino__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-casino__text-block--white a {
  color: var(--register-login-font-color); /* Yellow for links on dark background */
}

/* Light Background Section */
.page-casino__light-bg {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text */
}

/* Dark Background Section */
.page-casino__dark-bg {
  background-color: var(--primary-color); /* Main green color */
  color: var(--text-light); /* Light text */
}

/* Introduction Section - Features Grid */
.page-casino__introduction-section .page-casino__section-title {
  color: var(--primary-color);
}

.page-casino__introduction-section .page-casino__text-block {
  color: var(--text-dark);
}

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

.page-casino__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-casino__feature-item p {
  color: var(--text-dark);
  font-size: 1em;
  line-height: 1.7;
}

.page-casino__feature-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-casino__cta-center {
  margin-top: 50px;
}

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

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light); /* Light text on dark card */
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  max-width: 100%; /* Ensure image responsiveness */
}

.page-casino__game-title {
  font-size: 1.4em;
  color: var(--register-login-font-color); /* Yellow for titles on dark background */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__game-title a {
  color: var(--register-login-font-color);
  text-decoration: none;
}

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

.page-casino__game-card p {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-casino__game-card a {
  color: var(--register-login-font-color);
  text-decoration: underline;
}

.page-casino__btn-light {
  display: inline-block;
  padding: 10px 25px;
  background: var(--register-login-font-color); /* Yellow button */
  color: var(--primary-color); /* Green text on yellow button */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--register-login-font-color);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__btn-light:hover {
  background: #FFD700; /* Slightly darker yellow on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-casino__promo-card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
  color: var(--text-dark);
}

.page-casino__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  max-width: 100%; /* Ensure image responsiveness */
}

.page-casino__promo-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-casino__promo-card p {
  font-size: 0.95em;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-casino__promo-card a {
  color: var(--primary-color);
  text-decoration: underline;
}

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

.page-casino__security-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.page-casino__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__security-item img {
   /* Smaller icon-like images */
  
  object-fit: contain; /* Ensure full image is visible */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.page-casino__security-title {
  font-size: 1.3em;
  color: var(--register-login-font-color); /* Yellow for titles on dark background */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-casino__security-item p {
  font-size: 0.95em;
  color: var(--text-light);
  line-height: 1.6;
}

.page-casino__security-item a {
  color: var(--register-login-font-color);
  text-decoration: underline;
}

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

/* FAQ container styles */
.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* FAQ default state - answer hidden */
.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-dark);
}