/* Base styles */
.page-slot-games {
  background-color: #08160F;
  color: #F2FFF6;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-slot-games__section-title {
  font-size: 36px;
  color: #F2C14E; /* Gold color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-slot-games__content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-slot-games__content-wrapper p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #A7D9B8;
}

.page-slot-games__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #57E38D;
  border: 2px solid #57E38D;
  margin-left: 20px;
}

.page-slot-games__btn-secondary:hover {
  background-color: #57E38D;
  color: #08160F;
}

.page-slot-games__ctas {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px;
  background: linear-gradient(to bottom, #11A84E, #0A4B2C);
  color: #F2FFF6;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  margin-bottom: 40px;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-slot-games__hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: #A7D9B8;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Game Types Section */
.page-slot-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-card {
  background-color: #11271B;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E;
  color: #F2FFF6;
}

.page-slot-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-slot-games__game-card-title {
  font-size: 24px;
  color: #F2C14E;
  margin-bottom: 10px;
}

.page-slot-games__game-card-description {
  font-size: 16px;
  color: #A7D9B8;
  line-height: 1.5;
}

/* Game Trial Section */
.page-slot-games__game-trial-wrapper {
  padding-top: 20px;
  padding-bottom: 60px;
}

.page-slot-games__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  background-color: #11271B;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.page-slot-games__game-trial-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #0A4B2C;
  color: #F2FFF6;
  font-size: 16px;
  border-bottom: 1px solid #1E3A2A;
}

.page-slot-games__game-trial-title {
  font-weight: 600;
}

.page-slot-games__game-trial-login-btn {
  background-color: #F2C14E;
  color: #08160F;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-trial-login-btn:hover {
  background-color: #FFD700;
}

.page-slot-games__game-trial-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Default aspect ratio for games */
  overflow: hidden;
}

.page-slot-games__game-trial-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-slot-games__game-trial-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

.page-slot-games__game-trial-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
  display: none !important; /* Ensure it's hidden from layout */
}

.page-slot-games__game-trial-start {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(42, 209, 111, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}

.page-slot-games__game-trial-start:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(42, 209, 111, 0.6);
}

.page-slot-games__game-trial-bottombar {
  padding: 12px 20px;
  background-color: #0A4B2C;
  border-top: 1px solid #1E3A2A;
  text-align: center;
}

.page-slot-games__game-trial-full-version-btn {
  background-color: #2AD16F;
  color: #08160F;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-trial-full-version-btn:hover {
  background-color: #13994A;
  color: #F2FFF6;
}

/* Reward Modal (for trial game) */
.page-slot-games__reward-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-slot-games__reward-modal[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-slot-games__reward-modal-content {
  background-color: #11271B;
  color: #F2FFF6;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border: 2px solid #F2C14E;
}

.page-slot-games__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #F2C14E;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.page-slot-games__reward-modal-close:hover {
  color: #FFD700;
}

.page-slot-games__reward-modal h3 {
  font-size: 32px;
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-slot-games__reward-modal p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8;
}

.page-slot-games__reward-modal-btn {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.page-slot-games__reward-modal-btn:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  overflow: hidden;
  background: #11271B;
  color: #F2FFF6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
details.page-slot-games__faq-item summary.page-slot-games__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;
  color: #F2FFF6;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #0A4B2C;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6;
}
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background: #0A4B2C;
  border-radius: 0 0 10px 10px;
  color: #A7D9B8;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer p {
  margin-bottom: 0;
  text-align: left;
  font-size: 16px;
}

/* Media Queries */
@media (max-width: 1023px) {
  .page-slot-games__hero-section {
    padding-bottom: 40px;
  }
  .page-slot-games__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-slot-games__hero-description {
    font-size: 17px;
  }
  .page-slot-games__section-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-slot-games__section {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .page-slot-games__content-wrapper p {
    font-size: 16px;
  }
  .page-slot-games__hero-section {
    padding: 10px 15px 30px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-slot-games__hero-description {
    font-size: 16px;
  }
  .page-slot-games__ctas {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-slot-games__btn {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 10px 20px;
    font-size: 16px;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__btn-secondary {
    margin-left: 0;
  }
  .page-slot-games__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__game-card {
    padding: 20px;
  }
  .page-slot-games__game-card-title {
    font-size: 20px;
  }
  .page-slot-games__game-card-description {
    font-size: 15px;
  }
  .page-slot-games__game-trial-topbar, .page-slot-games__game-trial-bottombar {
    padding: 10px 15px;
    font-size: 14px;
  }
  .page-slot-games__game-trial-login-btn, .page-slot-games__game-trial-full-version-btn {
    padding: 6px 12px;
    font-size: 14px;
  }
  .page-slot-games__game-trial-start {
    padding: 12px 25px;
    font-size: 18px;
  }
  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 16px; }
  .page-slot-games__faq-toggle { font-size: 24px; width: 28px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }
  .page-slot-games__reward-modal-content {
    padding: 30px 20px;
  }
  .page-slot-games__reward-modal h3 {
    font-size: 26px;
  }
  .page-slot-games__reward-modal p {
    font-size: 16px;
  }
  .page-slot-games__reward-modal-btn {
    font-size: 16px;
    padding: 10px 20px;
  }
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__hero-image-wrapper, .page-slot-games__content-wrapper, .page-slot-games__game-trial-shell, .page-slot-games__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}