/* style/promo-welcome-bonus.css */

/* Custom Colors (from "自定义配色") */
:root {
  --fb777-primary-color: #F2C14E; /* Main color */
  --fb777-secondary-color: #FFD36B; /* Auxiliary color */
  --fb777-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  --fb777-card-bg: #111111; /* Card background */
  --fb777-background: #0A0A0A; /* Page background */
  --fb777-text-main: #FFF6D6; /* Main text color */
  --fb777-border: #3A2A12; /* Border color */
  --fb777-glow: #FFD36B; /* Glow effect color */
}

/* Base styles for the page content, considering body background is #0A0A0A (dark) */
.page-promo-welcome-bonus {
  color: var(--fb777-text-main); /* Light text for dark background */
  background-color: var(--fb777-background); /* Ensure consistency, though body handles overall */
  font-family: Arial, sans-serif; /* Example font */
  line-height: 1.6;
  padding-bottom: 40px; /* General padding for the main content area */
}

/* Section styling */
.page-promo-welcome-bonus__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promo-welcome-bonus__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 font size constraint applied to H2 as well for good measure */
  font-weight: 700;
  color: var(--fb777-secondary-color); /* Use a bright color for titles */
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-promo-welcome-bonus__sub-title {
  font-size: clamp(1.5em, 3vw, 2em);
  font-weight: 600;
  color: var(--fb777-primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-promo-welcome-bonus__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promo-welcome-bonus__text-block {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1.1em;
  color: var(--fb777-text-main);
}

.page-promo-welcome-bonus__text-block a {
  color: var(--fb777-primary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-promo-welcome-bonus__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--fb777-background);
  overflow: hidden; /* Ensure no overflow from image */
}

.page-promo-welcome-bonus__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promo-welcome-bonus__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
}

.page-promo-welcome-bonus__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
  text-align: center;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-promo-welcome-bonus__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size, using clamp */
  font-weight: 800;
  color: var(--fb777-secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promo-welcome-bonus__hero-description {
  font-size: 1.2em;
  color: var(--fb777-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-promo-welcome-bonus__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promo-welcome-bonus__cta-buttons--center {
  margin-top: 40px;
}

.page-promo-welcome-bonus__btn-primary,
.page-promo-welcome-bonus__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box; /* Ensure padding/border included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promo-welcome-bonus__btn-primary {
  background: var(--fb777-button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-promo-welcome-bonus__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-promo-welcome-bonus__btn-secondary {
  background: transparent;
  color: var(--fb777-primary-color);
  border: 2px solid var(--fb777-primary-color);
}

.page-promo-welcome-bonus__btn-secondary:hover {
  background: var(--fb777-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Dark/Light Background Sections for Contrast */
.page-promo-welcome-bonus__dark-bg {
  background-color: var(--fb777-background);
  color: var(--fb777-text-main);
}

.page-promo-welcome-bonus__light-bg {
  background-color: var(--fb777-card-bg); /* Using card bg for lighter section contrast */
  color: var(--fb777-text-main);
}

/* Card Grid for Maximizing Bonus Section */
.page-promo-welcome-bonus__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo-welcome-bonus__card {
  background-color: var(--fb777-card-bg);
  border: 1px solid var(--fb777-border);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--fb777-text-main); /* Ensure card text is light */
}

.page-promo-welcome-bonus__card-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image behaves as block for max-width */
}

.page-promo-welcome-bonus__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--fb777-primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}
.page-promo-welcome-bonus__card-title a {
  color: var(--fb777-primary-color);
  text-decoration: none;
}
.page-promo-welcome-bonus__card-title a:hover {
  text-decoration: underline;
}

.page-promo-welcome-bonus__card-text {
  font-size: 1em;
  color: var(--fb777-text-main);
}

/* Game Categories Section */
.page-promo-welcome-bonus__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}