/* style/casino.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for light background */
  background-color: var(--background-color);
}

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

.page-casino__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-casino__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.2);
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-casino__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  background-color: var(--background-color);
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-casino__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-casino__hero-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 1.3em;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 30px;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  color: #ffffff; /* For dark-section */
}

.page-casino__dark-section {
  background: var(--primary-color);
  color: #ffffff;
}

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

.page-casino__dark-section .page-casino__text-block {
  color: #f0f0f0;
}

/* Game Categories Section */
.page-casino__game-categories-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-casino__game-tile {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text-main-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
  text-align: center;
}

.page-casino__game-tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-casino__game-tile img {
  width: 100%;
  height: 250px; /* Fixed height for uniform game tiles */
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 15px;
  display: block;
}

.page-casino__game-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px;
}

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

.page-casino__light-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

.page-casino__promotion-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-casino__promotion-card:hover {
  transform: translateY(-5px);
}

.page-casino__promotion-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-casino__promotion-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-casino__promotion-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__promotion-card .page-casino__btn-primary {
  margin: 0 20px 20px;
}

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

.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: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background 0.3s ease;
}

.page-casino__feature-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.page-casino__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  display: inline-block;
}

.page-casino__feature-title {
  font-size: 1.6em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-casino__feature-description {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* CTA Register Section */
.page-casino__cta-register-section {
  padding: 80px 0;
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-casino__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-casino__faq-item {
  background: var(--card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  list-style: none; /* For details/summary */
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid var(--border-color);
}

.page-casino__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 20px;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
  content: '−';
}

.page-casino__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
  text-align: justify;
}

.page-casino__faq-item:not([open]) .page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-casino__faq-item[open] .page-casino__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  transition: max-height 0.3s ease-in;
}

/* Hide the default arrow for details/summary */
.page-casino__faq-item > summary::-webkit-details-marker {
  display: none;
}
.page-casino__faq-item > summary::marker {
  display: none;
}

/* Contact Support Section */
.page-casino__contact-support-section {
  padding: 80px 0;
  text-align: center;
}

.page-casino__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-casino__contact-list li {
  font-size: 1.2em;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-casino__contact-icon {
  width: 32px;
  height: 32px;
  display: block;
  vertical-align: middle;
}

/* General image responsiveness */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}