/* style/promotions-latest-details.css */

/* Base styles for the page */
.page-promotions-latest-details {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for elements directly on body background */
  background-color: transparent; /* Body background is handled by shared.css var(--black-color) */
}

.page-promotions-latest-details__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body already handles padding-top from header */
  background-color: var(--black-color, #0d0d0d);
  color: #ffffff;
}

.page-promotions-latest-details__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
}

.page-promotions-latest-details__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions-latest-details__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 20px;
  margin-top: -80px; /* Overlap slightly for visual effect, but not text on image */
  position: relative;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions-latest-details__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-promotions-latest-details__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions-latest-details__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Light background for main content readability */
  color: #333333; /* Dark text on light background */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-top: -40px; /* Slightly overlap hero for continuity */
  position: relative;
  z-index: 1;
}

.page-promotions-latest-details__section-title {
  font-size: 2.2rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-promotions-latest-details__section-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-latest-details__promotion-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions-latest-details__promotion-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease-in-out;
}

.page-promotions-latest-details__promotion-card:hover {
  transform: translateY(-5px);
}

.page-promotions-latest-details__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions-latest-details__card-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions-latest-details__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 25px;
}

.page-promotions-latest-details__game-promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions-latest-details__game-promotion-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-promotions-latest-details__game-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions-latest-details__game-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions-latest-details__game-description {
  font-size: 1rem;
  color: #555555;
}

.page-promotions-latest-details__guide-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.page-promotions-latest-details__guide-step {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-promotions-latest-details__guide-title {
  font-size: 1.6rem;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-promotions-latest-details__guide-step p,
.page-promotions-latest-details__guide-step ol li {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 10px;
}

.page-promotions-latest-details__guide-step ol {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-promotions-latest-details__guide-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-promotions-latest-details__optimization-tips {
  margin-bottom: 60px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.page-promotions-latest-details__tip-title {
  font-size: 1.6rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions-latest-details__optimization-tips ul {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-promotions-latest-details__optimization-tips ul li {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 8px;
}

.page-promotions-latest-details__faq-list {
  margin-bottom: 60px;
}

.page-promotions-latest-details__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-promotions-latest-details__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #eaf6fd; /* Lighter brand color for summary */
  border-radius: 8px;
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-promotions-latest-details__faq-question:hover {
  background-color: #d7edf9;
}

.page-promotions-latest-details__faq-item summary {
  list-style: none;
}

.page-promotions-latest-details__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions-latest-details__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-promotions-latest-details__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-promotions-latest-details__call-to-action-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff; /* White text for contrast */
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions-latest-details__call-to-action-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions-latest-details__call-to-action-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions-latest-details__cta-button,
.page-promotions-latest-details__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions-latest-details__cta-button:hover,
.page-promotions-latest-details__btn-primary:hover {
  background-color: #d66c06;
  transform: translateY(-2px);
}

.page-promotions-latest-details__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 10px 20px;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.page-promotions-latest-details__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions-latest-details a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions-latest-details a:hover {
  color: #1a7fb8;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-latest-details__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-promotions-latest-details__section-title {
    font-size: 2rem;
  }

  .page-promotions-latest-details__call-to-action-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-promotions-latest-details__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-promotions-latest-details__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

  .page-promotions-latest-details__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-promotions-latest-details__hero-description {
    font-size: 1rem;
  }

  .page-promotions-latest-details__content-area {
    padding: 30px 15px;
    margin-top: -30px;
  }

  .page-promotions-latest-details__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .page-promotions-latest-details__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-promotions-latest-details__promotion-card-grid,
  .page-promotions-latest-details__game-promotion-grid,
  .page-promotions-latest-details__guide-section {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions-latest-details__promotion-card,
  .page-promotions-latest-details__game-promotion-item,
  .page-promotions-latest-details__guide-step,
  .page-promotions-latest-details__optimization-tips,
  .page-promotions-latest-details__faq-item,
  .page-promotions-latest-details__call-to-action-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions-latest-details__card-title,
  .page-promotions-latest-details__game-title,
  .page-promotions-latest-details__guide-title,
  .page-promotions-latest-details__tip-title {
    font-size: 1.3rem;
  }

  /* Mobile image responsiveness */
  .page-promotions-latest-details img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button responsiveness */
  .page-promotions-latest-details__cta-button,
  .page-promotions-latest-details__btn-primary,
  .page-promotions-latest-details__btn-secondary,
  .page-promotions-latest-details a[class*="button"],
  .page-promotions-latest-details a[class*="btn"] {
    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;
  }

  .page-promotions-latest-details__cta-buttons,
  .page-promotions-latest-details__button-group,
  .page-promotions-latest-details__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-promotions-latest-details__call-to-action-title {
    font-size: 2rem;
  }

  .page-promotions-latest-details__call-to-action-description {
    font-size: 1rem;
  }
}