/* style/blog-ph9-latest-promotions-guide.css */
:root {
  --ph9-primary-color: #F2C14E;
  --ph9-secondary-color: #FFD36B;
  --ph9-card-bg: #111111;
  --ph9-background: #0A0A0A;
  --ph9-text-main: #FFF6D6;
  --ph9-border-color: #3A2A12;
  --ph9-glow-color: #FFD36B;
  --ph9-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Body background from shared.css is var(--background-color) which is dark. Text must be light. */
.page-blog-ph9-latest-promotions-guide {
  font-family: Arial, sans-serif;
  color: var(--ph9-text-main); /* Light text for dark background */
  background-color: var(--ph9-background);
  line-height: 1.6;
}

.page-blog-ph9-latest-promotions-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-ph9-latest-promotions-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--ph9-background);
  overflow: hidden;
}

.page-blog-ph9-latest-promotions-guide__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-ph9-latest-promotions-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog-ph9-latest-promotions-guide__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up over the image slightly without overlap */
  background: var(--ph9-card-bg);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--ph9-border-color);
}

.page-blog-ph9-latest-promotions-guide__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--ph9-secondary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-blog-ph9-latest-promotions-guide__hero-description {
  font-size: 1.1rem;
  color: var(--ph9-text-main);
  margin-bottom: 30px;
}

.page-blog-ph9-latest-promotions-guide__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--ph9-button-gradient);
  color: var(--ph9-text-main);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-ph9-latest-promotions-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 211, 107, 0.5);
}

.page-blog-ph9-latest-promotions-guide__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--ph9-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-blog-ph9-latest-promotions-guide__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ph9-secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-ph9-latest-promotions-guide__text-block {
  font-size: 1rem;
  color: var(--ph9-text-main);
  margin-bottom: 20px;
}

.page-blog-ph9-latest-promotions-guide__intro-section,
.page-blog-ph9-latest-promotions-guide__promotions-section,
.page-blog-ph9-latest-promotions-guide__how-to-claim-section,
.page-blog-ph9-latest-promotions-guide__gaming-experience-section,
.page-blog-ph9-latest-promotions-guide__mobile-app-section,
.page-blog-ph9-latest-promotions-guide__responsible-gaming-section,
.page-blog-ph9-latest-promotions-guide__faq-section,
.page-blog-ph9-latest-promotions-guide__why-choose-section,
.page-blog-ph9-latest-promotions-guide__cta-section {
  padding: 60px 0;
  background-color: var(--ph9-background);
}

.page-blog-ph9-latest-promotions-guide__promotions-grid,
.page-blog-ph9-latest-promotions-guide__steps-grid,
.page-blog-ph9-latest-promotions-guide__gaming-grid,
.page-blog-ph9-latest-promotions-guide__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-ph9-latest-promotions-guide__promotion-card,
.page-blog-ph9-latest-promotions-guide__step-card,
.page-blog-ph9-latest-promotions-guide__gaming-card,
.page-blog-ph9-latest-promotions-guide__benefit-card {
  background-color: var(--ph9-card-bg);
  border: 1px solid var(--ph9-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-blog-ph9-latest-promotions-guide__promotion-card:hover,
.page-blog-ph9-latest-promotions-guide__step-card:hover,
.page-blog-ph9-latest-promotions-guide__gaming-card:hover,
.page-blog-ph9-latest-promotions-guide__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--ph9-glow-color);
}

.page-blog-ph9-latest-promotions-guide__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog-ph9-latest-promotions-guide__card-title,
.page-blog-ph9-latest-promotions-guide__step-title {
  font-size: 1.5rem;
  color: var(--ph9-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog-ph9-latest-promotions-guide__card-description {
  font-size: 0.95rem;
  color: var(--ph9-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-ph9-latest-promotions-guide__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--ph9-primary-color);
  border: 2px solid var(--ph9-primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-ph9-latest-promotions-guide__btn-secondary:hover {
  background-color: var(--ph9-primary-color);
  color: var(--ph9-card-bg);
}

.page-blog-ph9-latest-promotions-guide__app-content,
.page-blog-ph9-latest-promotions-guide__responsible-gaming-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-blog-ph9-latest-promotions-guide__app-text,
.page-blog-ph9-latest-promotions-guide__responsible-gaming-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-blog-ph9-latest-promotions-guide__app-image-wrapper,
.page-blog-ph9-latest-promotions-guide__responsible-gaming-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  text-align: center;
}

.page-blog-ph9-latest-promotions-guide__app-image,
.page-blog-ph9-latest-promotions-guide__responsible-gaming-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-blog-ph9-latest-promotions-guide__faq-list {
  margin-top: 30px;
}

.page-blog-ph9-latest-promotions-guide__faq-item {
  background-color: var(--ph9-card-bg);
  border: 1px solid var(--ph9-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-blog-ph9-latest-promotions-guide__faq-item.active {
  background-color: rgba(255, 211, 107, 0.05); /* Slightly lighter background when active */
}

.page-blog-ph9-latest-promotions-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--ph9-text-main);
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog-ph9-latest-promotions-guide__faq-question:hover {
  color: var(--ph9-primary-color);
}

.page-blog-ph9-latest-promotions-guide__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--ph9-primary-color);
}

.page-blog-ph9-latest-promotions-guide__faq-item.active .page-blog-ph9-latest-promotions-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-blog-ph9-latest-promotions-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--ph9-text-main);
  font-size: 0.95rem;
}

.page-blog-ph9-latest-promotions-guide__faq-item.active .page-blog-ph9-latest-promotions-guide__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px 20px;
}

.page-blog-ph9-latest-promotions-guide__cta-section {
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog-ph9-latest-promotions-guide__hero-content {
    margin-top: -50px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog-ph9-latest-promotions-guide__hero-content {
    margin-top: 0;
    border-radius: 0;
    padding: 20px;
    max-width: 100%;
  }

  .page-blog-ph9-latest-promotions-guide__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-blog-ph9-latest-promotions-guide__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-blog-ph9-latest-promotions-guide__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .page-blog-ph9-latest-promotions-guide__promotions-grid,
  .page-blog-ph9-latest-promotions-guide__steps-grid,
  .page-blog-ph9-latest-promotions-guide__gaming-grid,
  .page-blog-ph9-latest-promotions-guide__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-ph9-latest-promotions-guide__intro-section,
  .page-blog-ph9-latest-promotions-guide__promotions-section,
  .page-blog-ph9-latest-promotions-guide__how-to-claim-section,
  .page-blog-ph9-latest-promotions-guide__gaming-experience-section,
  .page-blog-ph9-latest-promotions-guide__mobile-app-section,
  .page-blog-ph9-latest-promotions-guide__responsible-gaming-section,
  .page-blog-ph9-latest-promotions-guide__faq-section,
  .page-blog-ph9-latest-promotions-guide__why-choose-section,
  .page-blog-ph9-latest-promotions-guide__cta-section {
    padding: 40px 0;
  }

  .page-blog-ph9-latest-promotions-guide__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile responsive images */
  .page-blog-ph9-latest-promotions-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile responsive buttons */
  .page-blog-ph9-latest-promotions-guide__btn-primary,
  .page-blog-ph9-latest-promotions-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button containers mobile adaptation */
  .page-blog-ph9-latest-promotions-guide__cta-buttons,
  .page-blog-ph9-latest-promotions-guide__button-group,
  .page-blog-ph9-latest-promotions-guide__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;
  }

  .page-blog-ph9-latest-promotions-guide__app-content,
  .page-blog-ph9-latest-promotions-guide__responsible-gaming-content {
    flex-direction: column;
  }

  .page-blog-ph9-latest-promotions-guide__app-text,
  .page-blog-ph9-latest-promotions-guide__responsible-gaming-text {
    max-width: 100%;
  }

  .page-blog-ph9-latest-promotions-guide__app-image-wrapper,
  .page-blog-ph9-latest-promotions-guide__responsible-gaming-image-wrapper {
    max-width: 100%;
  }
}