/* style/casino.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --accent-color: #C30808; /* For register/login buttons */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --font-color-login-register: #FFFF00;
}

.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

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

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

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

/* 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); /* Ensures content is not hidden by fixed header */
  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;
  gap: 30px;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
  color: var(--text-color-light);
}

.page-casino__hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: var(--font-color-login-register); /* Specific color for hero title */
  line-height: 1.2;
}

.page-casino__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

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

.page-casino__hero-image {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 1;
}

.page-casino__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly dim the image for text readability, not changing color */
}

/* General Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: var(--accent-color); /* Use accent color for primary actions like Register */
  color: var(--font-color-login-register); /* Specific font color for login/register */
  border: 2px solid var(--accent-color);
}

.page-casino__btn-primary:hover {
  background: darken(var(--accent-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--text-color-light); /* Light text for secondary button on dark background */
  border: 2px solid var(--text-color-light);
}

.page-casino__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section Backgrounds */
.page-casino__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

.page-casino__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

.page-casino__light-bg .page-casino__section-title,
.page-casino__light-bg h3 {
  color: var(--primary-color);
}

.page-casino__medium-bg {
  background-color: #f5f5f5; /* A light grey for contrast */
  color: var(--text-color-dark);
}

.page-casino__medium-bg .page-casino__section-title,
.page-casino__medium-bg h3 {
  color: var(--primary-color);
}

/* Intro Section */
.page-casino__intro-section {
  padding: 60px 0;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
}

.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: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for cards */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-casino__game-card h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-card p {
  font-size: 16px;
  color: var(--text-color-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-secondary {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  align-self: center;
}

.page-casino__game-card .page-casino__btn-secondary:hover {
  background: darken(var(--primary-color), 10%);
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 60px 0;
}

.page-casino__responsive-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-casino__promo-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-casino__promo-list li {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.page-casino__promo-list li:hover {
  transform: translateX(5px);
}

.page-casino__promo-list li strong {
  color: var(--primary-color);
}

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

/* Security Section */
.page-casino__security-section {
  padding: 60px 0;
}

.page-casino__security-features {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-casino__security-features li {
  background: var(--secondary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  font-size: 17px;
  color: var(--text-color-dark);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-casino__security-features li strong {
  display: block;
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Mobile Section */
.page-casino__mobile-section {
  padding: 60px 0;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Ensure enough space for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

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

.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: var(--accent-color);
  transform: rotate(180deg);
}

/* News Section */
.page-casino__news-section {
  padding: 60px 0;
}

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

.page-casino__news-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__news-card img {
  width: 100%;
  height: 220px; /* Fixed height for news images */
  object-fit: cover;
}

.page-casino__news-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin: 15px 15px 10px;
}

.page-casino__news-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-casino__news-card h3 a:hover {
  text-decoration: underline;
}

.page-casino__news-card p {
  font-size: 15px;
  color: var(--text-color-dark);
  padding: 0 15px 15px;
}

.page-casino__read-more {
  display: inline-block;
  margin: 0 15px 15px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-casino__read-more:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-content h1 {
    font-size: 42px;
  }
  .page-casino__hero-content p {
    font-size: 18px;
  }
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__section-description {
    font-size: 16px;
  }
}

@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-content h1 {
    font-size: 32px;
  }
  .page-casino__hero-content p {
    font-size: 16px;
  }
  .page-casino__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .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;
    padding-right: 15px;
  }
  .page-casino__section-title {
    font-size: 28px;
  }
  .page-casino__game-grid,
  .page-casino__security-features,
  .page-casino__news-grid {
    grid-template-columns: 1fr;
  }
  .page-casino__game-card img,
  .page-casino__news-card img {
    
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__faq-question {
    padding: 15px;
  }
  .page-casino__faq-question h3 {
    font-size: 15px;
  }
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }
}

/* Ensure no image filters are used to change color */
.page-casino img {
  filter: none; /* Override any potential unwanted filters */
}

/* Specific button colors for login/register text */
.page-casino__btn-primary {
    color: var(--font-color-login-register);
}

.page-casino__hero-content h1 {
    color: var(--font-color-login-register);
}