/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-casino__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden;
  text-align: center;
  background-color: #0A4B2C; /* Deep Green for hero background */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 40px;
  order: 1; /* Image block first */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

.page-casino__hero-content {
  order: 2; /* Text block second */
  position: relative;
  z-index: 10;
  max-width: 900px;
  color: #F2FFF6; /* Custom Text Main */
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #F2FFF6; /* Custom Text Main */
}

.page-casino__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-casino__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-casino__btn-secondary {
  background: #11271B; /* Custom Card BG */
  color: #57E38D; /* Custom Glow */
  border: 2px solid #2E7A4E; /* Custom Border */
}

.page-casino__btn-secondary:hover {
  background: #2E7A4E; /* Custom Border */
  color: #F2FFF6; /* Custom Text Main */
  transform: translateY(-2px);
}

.page-casino__btn-tertiary {
  background: transparent;
  color: #57E38D; /* Custom Glow */
  border: 1px solid #57E38D; /* Custom Glow */
  padding: 10px 20px;
  min-width: unset;
}

.page-casino__btn-tertiary:hover {
  background: #57E38D; /* Custom Glow */
  color: #08160F; /* Custom Background */
}

/* About Section */
.page-casino__about-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__guide-section,
.page-casino__security-section,
.page-casino__faq-section,
.page-casino__cta-final-section {
  padding: 80px 0;
}

.page-casino__features-grid,
.page-casino__games-grid,
.page-casino__promo-cards,
.page-casino__steps-grid,
.page-casino__security-content {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-casino__features-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-casino__feature-card {
  background-color: #11271B; /* Custom Card BG */\  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #1E3A2A; /* Custom Divider */
}

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

.page-casino__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  border-radius: 8px;
}

.page-casino__feature-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
}

.page-casino__feature-text {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

.page-casino__game-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E3A2A; /* Custom Divider */
}

.page-casino__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__game-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-casino__game-title a {
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
}

.page-casino__game-title a:hover {
  color: #57E38D; /* Custom Glow */
}

.page-casino__game-text {
  font-size: 0.95rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 15px;
}

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

.page-casino__promo-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  padding-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E3A2A; /* Custom Divider */
  text-align: center;
}

.page-casino__promo-image {
  width: 100%;
  height: auto;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-casino__promo-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-casino__promo-title a {
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
}

.page-casino__promo-title a:hover {
  color: #57E38D; /* Custom Glow */
}

.page-casino__promo-text {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  padding: 0 20px;
}

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

.page-casino__step-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E3A2A; /* Custom Divider */
}

.page-casino__step-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
}

.page-casino__step-text {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
}

/* Security Section */
.page-casino__security-content {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-casino__security-item {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E3A2A; /* Custom Divider */
}

.page-casino__security-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  border-radius: 8px;
}

.page-casino__security-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
}

.page-casino__security-text {
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
}

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

.page-casino__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #1E3A2A; /* Custom Divider */
  color: #F2FFF6;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Custom Text Main */
  list-style: none;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-casino__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #57E38D; /* Custom Glow */
}

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

.page-casino__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Custom Text Secondary */
}

/* Final CTA Section */
.page-casino__cta-final-section {
  background-color: #0A4B2C; /* Deep Green */
  padding: 60px 0;
  text-align: center;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: #F2FFF6;
}

.page-casino__cta-final-section .page-casino__section-description {
  color: #A7D9B8;
  margin-bottom: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-casino__hero-content {
    padding: 0 15px;
  }
  .page-casino__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-casino__hero-description {
    font-size: 1.1rem;
  }
  .page-casino__features-grid,
  .page-casino__games-grid,
  .page-casino__promo-cards,
  .page-casino__steps-grid,
  .page-casino__security-content {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-casino__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-casino__main-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  .page-casino__hero-description {
    font-size: 1rem;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Image responsive override */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-image-wrapper,
  .page-casino__feature-card,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__step-card,
  .page-casino__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-casino__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__hero-image {
    border-radius: 0;
  }
  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__guide-section,
  .page-casino__security-section,
  .page-casino__faq-section,
  .page-casino__cta-final-section {
    padding: 40px 0;
  }
  .page-casino__section-description {
    margin-bottom: 20px;
  }
  .page-casino__faq-question {
    font-size: 1rem;
  }
  .page-casino__faq-answer {
    font-size: 0.9rem;
  }
}