/* style/casino.css */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background from shared.css */
}

.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--deep-navy); /* Ensure consistency if body bg is not applied by shared */
}

/* --- General Section Styling --- */
.page-casino__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
  line-height: 1.2;
}

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

.page-casino__text-block {
  font-size: 17px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  line-height: 1.7;
}

.page-casino__dark-section {
  background-color: var(--deep-navy);
  color: var(--text-main);
  padding: 60px 0;
}

.page-casino__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__card-title {
  font-size: 24px;
  color: var(--text-main);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.page-casino__card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-casino__card-title a:hover {
  color: var(--gold-color);
}

.page-casino__card-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.page-casino__btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-casino__btn-link:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-casino__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  margin-left: 20px;
}

.page-casino__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

/* --- 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: 10px; /* Small top padding, header offset handled by body */
  overflow: hidden;
  background-color: var(--deep-navy);
}

.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;
  max-height: 675px; /* Limit hero image height */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-casino__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(79, 168, 255, 0.5);
}

.page-casino__hero-description {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

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

/* --- Introduction Section --- */
.page-casino__introduction-section .page-casino__section-title {
  color: var(--gold-color);
}

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

.page-casino__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

/* --- Security Section --- */
.page-casino__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* --- Payments Section --- */
.page-casino__payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__method-item img {
  width: 100%;
  
  object-fit: contain;
  margin-bottom: 15px;
}

.page-casino__note {
  font-size: 16px;
  color: var(--gold-color);
  margin-top: 40px;
  font-weight: 600;
}

/* --- Support Section --- */
.page-casino__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* --- FAQ Section --- */
details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: rgba(29, 95, 209, 0.1);
}

.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}

.page-casino__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 25px;
  background: rgba(16, 35, 63, 0.8); /* Slightly lighter than card-bg */
  border-radius: 0 0 12px 12px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Final CTA Section --- */
.page-casino__cta-final-section {
  padding: 80px 20px;
}

.page-casino__cta-final-section .page-casino__section-title {
  color: var(--gold-color);
  font-size: clamp(28px, 3.5vw, 48px);
}

.page-casino__cta-final-section .page-casino__text-block {
  margin-bottom: 40px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-casino__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-casino__hero-image img {
    border-radius: 8px;
  }

  .page-casino__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-casino__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important; /* Remove margin for secondary button */
  }

  .page-casino__btn-secondary {
    margin-left: 0;
  }

  .page-casino__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-casino__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-casino__game-grid, .page-casino__promo-grid, .page-casino__security-features, .page-casino__payment-methods, .page-casino__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-casino__card-title {
    font-size: 20px;
  }

  .page-casino__card-description {
    font-size: 14px;
  }

  .page-casino__btn-link {
    padding: 8px 20px;
    font-size: 14px;
  }

  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-qtext {
    font-size: 16px;
  }

  .page-casino__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
  }

  .page-casino__cta-final-section {
    padding: 60px 15px;
  }

  .page-casino__cta-final-section .page-casino__section-title {
    font-size: 28px;
  }

  /* Image responsiveness */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !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__hero-section .page-casino__hero-image img {
    object-fit: cover;
    max-height: 300px; /* Adjust for mobile hero image height */
  }
}

@media (max-width: 480px) {
  .page-casino__main-title {
    font-size: clamp(24px, 10vw, 36px);
  }
  .page-casino__hero-description {
    font-size: 15px;
  }
  .page-casino__section-title {
    font-size: 24px;
  }
  .page-casino__text-block {
    font-size: 15px;
  }
  .page-casino__card-title {
    font-size: 18px;
  }
  .page-casino__faq-qtext {
    font-size: 15px;
  }
}