/* style/casino.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #EA7C07; /* Login color */
  --background-color: #FFFFFF;
  --text-color-light-bg: #333333;
  --text-color-dark-bg: #FFFFFF;
  --card-dark-bg: rgba(38, 169, 224, 0.9); /* Darker primary color for better contrast on cards */
  --border-color: #e0e0e0;
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg);
  background-color: var(--background-color);
}

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

.page-casino__section {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-casino__text-block {
  margin-bottom: 20px;
  font-size: 17px;
  text-align: justify;
}

/* Color Contrast Handling */
.page-casino__light-bg {
  background-color: var(--background-color);
  color: var(--text-color-light-bg);
}

.page-casino__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

/* 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);
  overflow: hidden;
}

.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;
  overflow: hidden;
}

.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%;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background-color: rgba(38, 169, 224, 0.85); /* Slightly transparent primary color */
  color: var(--text-color-dark-bg);
}

.page-casino__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
  line-height: 1.2;
}

.page-casino__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-dark-bg);
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__cta-button:hover {
  background: #EA8E2C; /* Slightly darker secondary color */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-casino__card {
  background: var(--background-color);
  color: var(--text-color-light-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__card--dark {
  background: var(--card-dark-bg);
  color: var(--text-color-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-casino__card--dark .page-casino__card-title {
  color: var(--text-color-dark-bg);
}

.page-casino__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-casino__card-title a {
  color: inherit; /* Inherit color from parent for consistency */
  text-decoration: none;
}

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

.page-casino__card-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--text-color-dark-bg);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-casino__btn-text {
  display: inline-block;
  color: var(--text-color-dark-bg);
  text-decoration: underline;
  font-weight: bold;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: var(--secondary-color);
}

/* Game Categories */
.page-casino__game-category {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__game-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

/* Feature Grid */
.page-casino__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-casino__feature-item {
  text-align: center;
  padding: 25px;
  background: var(--background-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-casino__feature-description {
  font-size: 15px;
  line-height: 1.6;
}

/* FAQ Section */
.page-casino__faq-list {
  margin-top: 30px;
}

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: #f8f8f8;
  border-color: #d0d0d0;
}

.page-casino__faq-question:active {
  background: #eeeeee;
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-color-light-bg);
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Changed to rotate for '-' effect */
}

.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 25px;
  opacity: 0;
  font-size: 15px;
  color: var(--text-color-light-bg);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  border-top: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-title {
    font-size: 40px;
  }
  .page-casino__hero-description {
    font-size: 18px;
  }
  .page-casino__section-title {
    font-size: 30px;
  }
  .page-casino__card-grid {
    gap: 20px;
  }
  .page-casino__feature-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-image {
    margin-bottom: 20px;
  }
}