/* style/casino.css */

/* Base styles for the Casino page */
.page-casino {
  color: #ffffff; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Space for fixed header on desktop */
}

@media (max-width: 768px) {
  .page-casino {
    padding-top: 100px; /* Space for fixed header on mobile */
  }
}

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

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }
}

.page-casino__main-title {
  font-size: 42px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .page-casino__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
}

.page-casino__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

@media (max-width: 768px) {
  .page-casino__section-description {
    font-size: 15px;
    margin-bottom: 25px;
  }
}

.page-casino__intro-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__guide-section,
.page-casino__security-support-section,
.page-casino__faq-section,
.page-casino__news-section {
  padding: 80px 0;
}

.page-casino__intro-section {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('[GALLERY:bg:casino_intro,background_pattern]') no-repeat center center;
  background-size: cover;
}

.page-casino__intro-text {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
  color: #ffffff;
}

.page-casino__intro-text strong {
  color: #FFD700;
}

@media (max-width: 768px) {
  .page-casino__intro-text {
    font-size: 16px;
  }
}

.page-casino__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .page-casino__cta-group {
    flex-direction: column;
    gap: 15px;
  }
}

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

@media (max-width: 768px) {
  .page-casino__cta-center {
    margin-top: 30px;
  }
}

.page-casino__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.page-casino__btn--primary {
  background: #FFD700; /* Gold brand color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FFD700;
}

.page-casino__btn--primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-casino__btn--secondary {
  background: transparent;
  color: #FFD700; /* Gold brand color */
  border: 2px solid #FFD700;
}

.page-casino__btn--secondary:hover {
  background: #FFD700;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
  .page-casino__btn {
    padding: 12px 25px;
    font-size: 16px;
    width: 100%;
  }
}

/* Games Section */
.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .page-casino__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
}

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-casino__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-casino__game-card-image {
    height: 150px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-casino__game-card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  padding: 15px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .page-casino__game-card-title {
    font-size: 16px;
    padding: 10px;
  }
}

/* Promotions Section */
.page-casino__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .page-casino__promo-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.page-casino__promo-item {
  background: rgba(139, 0, 0, 0.4); /* Dark red semi-transparent */
  border-radius: 12px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-casino__promo-item:hover {
  transform: translateY(-5px);
  background: rgba(139, 0, 0, 0.6);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-casino__promo-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-casino__promo-icon {
    width: 60px;
    height: 60px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-casino__promo-content {
  flex-grow: 1;
}

.page-casino__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  margin-top: 0;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .page-casino__promo-title {
    font-size: 18px;
  }
}

.page-casino__promo-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-casino__promo-text {
    font-size: 14px;
  }
}

/* Guide Section */
.page-casino__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .page-casino__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.page-casino__step-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-casino__step-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-casino__step-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  background: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-casino__step-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-casino__step-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  .page-casino__step-icon {
    width: 50px;
    height: 50px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .page-casino__step-title {
    font-size: 18px;
  }
}

.page-casino__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

@media (max-width: 768px) {
  .page-casino__step-text {
    font-size: 14px;
  }
}

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

@media (max-width: 768px) {
  .page-casino__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.page-casino__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-casino__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-casino__feature-icon {
    width: 60px;
    height: 60px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .page-casino__feature-title {
    font-size: 18px;
  }
}

.page-casino__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

@media (max-width: 768px) {
  .page-casino__feature-text {
    font-size: 14px;
  }
}

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

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(139, 0, 0, 0.6); /* Dark red semi-transparent */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: rgba(139, 0, 0, 0.8);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

@media (max-width: 768px) {
  .page-casino__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-casino__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold brand color */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .page-casino__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
}

.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;
  background: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent for answer */
  color: #e0e0e0;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Use !important and a large value */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
}

@media (max-width: 768px) {
  .page-casino__faq-answer {
    padding: 0 15px;
  }
  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px !important;
  }
  .page-casino__faq-answer p {
    font-size: 14px;
  }
}

/* News Section */
.page-casino__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

@media (max-width: 768px) {
  .page-casino__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.page-casino__news-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

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

.page-casino__news-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-casino__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

@media (max-width: 768px) {
  .page-casino__news-card-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

.page-casino__news-card-content {
  padding: 20px;
}

.page-casino__news-card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold brand color */
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .page-casino__news-card-title {
    font-size: 18px;
  }
}

.page-casino__news-card-excerpt {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-casino__news-card-excerpt {
    font-size: 14px;
  }
}

.page-casino__news-card-date {
  font-size: 14px;
  color: #999;
  display: block;
}

@media (max-width: 768px) {
  .page-casino__news-card-date {
    font-size: 12px;
  }
}

/* Ensure all images are responsive */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive for all image containers */
@media (max-width: 768px) {
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__promo-item,
  .page-casino__step-item,
  .page-casino__feature-item,
  .page-casino__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}