/* style/casino.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg-color: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-casino {
  color: var(--text-main-color); /* Ensures text is light on dark body background */
  background-color: var(--background-color);
}

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

.page-casino__section-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: 700;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__section-intro-text {
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-main-color);
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Desktop fixed header spacing */
  color: #fff;
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Adjust as needed */
  position: relative;
  overflow: hidden;
}

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

.page-casino__hero-content {
  padding: 60px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  position: relative;
  z-index: 2;
  border-bottom: 5px solid var(--primary-color);
}

.page-casino__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

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

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

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.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: var(--button-gradient);
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-casino__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Use brand color for contrast */
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: #000; /* Dark text on brand color hover */
  transform: translateY(-3px);
}

.page-casino__text-link {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-casino__text-link:hover {
  color: var(--primary-color);
}

/* General Section Styling */
.page-casino__why-choose-section,
.page-casino__game-categories-section,
.page-casino__promotions-section,
.page-casino__access-guide-section,
.page-casino__responsible-gaming-section,
.page-casino__faq-section,
.page-casino__partners-section,
.page-casino__contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.page-casino__card {
  background: var(--card-bg-color);
  color: var(--text-main-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-casino__card-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

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

.page-casino__feature-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

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

/* Game Categories Section */
.page-casino__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.page-casino__category-card {
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.page-casino__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.4);
}

.page-casino__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
}

.page-casino__category-card h3 {
  color: var(--primary-color);
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-casino__category-card p {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main-color);
  flex-grow: 1;
}

.page-casino__play-now-link {
  display: block;
  margin-top: 15px;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: underline;
}

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

.page-casino__promo-card .page-casino__card-title {
  color: var(--secondary-color);
}

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

.page-casino__promo-card p {
  line-height: 1.6;
  margin-bottom: 25px;
}

.page-casino__view-all-promos {
  text-align: center;
}

/* Access Guide Section */
.page-casino__access-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-casino__access-card ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 25px;
}

.page-casino__access-card li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-casino__download-app-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border-color);
}

.page-casino__download-image {
  flex: 1 1 300px;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.page-casino__download-content {
  flex: 2 1 400px;
}

.page-casino__download-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-casino__download-content p {
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for question */
  border-radius: 8px;
  font-weight: 600;
  color: var(--primary-color);
  transition: background 0.3s ease;
}

.page-casino__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-casino__faq-answer {
  max-height: 0; /* Initial state: collapsed */
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main-color);
  font-size: 0.95em;
  line-height: 1.6;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 20px 20px; /* Adjust padding when open */
}

/* Partners Section */
.page-casino__partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.page-casino__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
  border: none; /* Ensure no unwanted borders */
}

.page-casino__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Contact Section */
.page-casino__contact-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
  }

  .page-casino__hero-image-wrapper {
    height: 300px;
  }

  .page-casino__hero-content {
    padding: 40px 15px;
  }

  .page-casino__main-title {
    font-size: 2.2em;
  }

  .page-casino__hero-description {
    font-size: 1em;
  }

  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-casino__section-intro-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-casino__why-choose-section,
  .page-casino__game-categories-section,
  .page-casino__promotions-section,
  .page-casino__access-guide-section,
  .page-casino__responsible-gaming-section,
  .page-casino__faq-section,
  .page-casino__partners-section,
  .page-casino__contact-section {
    padding: 50px 0;
  }

  .page-casino__container {
    padding: 0 15px;
  }

  .page-casino__features-grid,
  .page-casino__categories-grid,
  .page-casino__promo-cards-grid,
  .page-casino__access-steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-image,
  .page-casino__promo-image {
    height: 180px;
  }

  .page-casino__download-app-cta {
    flex-direction: column;
    padding: 30px;
    gap: 20px;
  }

  .page-casino__download-image {
    max-width: 100%;
  }

  .page-casino__download-content h3 {
    text-align: center;
  }

  .page-casino__download-content p {
    text-align: center;
    margin-bottom: 20px;
  }

  .page-casino__download-content .page-casino__btn-primary {
    width: 100%;
  }

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

  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-casino__partner-logo {
    width: 100%;
    height: auto;
    max-width: 120px; /* Constrain individual logos */
    margin: 0 auto;
  }
}