/* style/blog-sunwin-latest-promotions.css */

/* Variables from custom color scheme */
:root {
  --sunwin-primary-color: #11A84E;
  --sunwin-secondary-color: #22C768;
  --sunwin-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --sunwin-card-bg: #11271B;
  --sunwin-background: #08160F;
  --sunwin-text-main: #F2FFF6;
  --sunwin-text-secondary: #A7D9B8;
  --sunwin-border: #2E7A4E;
  --sunwin-glow: #57E38D;
  --sunwin-gold: #F2C14E;
  --sunwin-divider: #1E3A2A;
  --sunwin-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming dark body background from shared.css */
.page-blog-sunwin-latest-promotions {
  background-color: var(--sunwin-background);
  color: var(--sunwin-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

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

.page-blog-sunwin-latest-promotions__section-title {
  font-size: 2.5em;
  color: var(--sunwin-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog-sunwin-latest-promotions__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(--sunwin-deep-green);
}

.page-blog-sunwin-latest-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-blog-sunwin-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-sunwin-latest-promotions__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-blog-sunwin-latest-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--sunwin-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog-sunwin-latest-promotions__hero-description {
  font-size: 1.1em;
  color: var(--sunwin-text-main);
  margin-bottom: 30px;
}

.page-blog-sunwin-latest-promotions__cta-button {
  display: inline-block;
  background: var(--sunwin-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-blog-sunwin-latest-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-sunwin-latest-promotions__introduction-section,
.page-blog-sunwin-latest-promotions__promo-types-section,
.page-blog-sunwin-latest-promotions__tips-section {
  padding: 60px 0;
}

.page-blog-sunwin-latest-promotions__paragraph {
  font-size: 1.05em;
  color: var(--sunwin-text-main);
  margin-bottom: 20px;
}

.page-blog-sunwin-latest-promotions__paragraph a {
  color: var(--sunwin-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-blog-sunwin-latest-promotions__paragraph a:hover {
  text-decoration: underline;
}

.page-blog-sunwin-latest-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-sunwin-latest-promotions__promo-card {
  background-color: var(--sunwin-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sunwin-border);
}

.page-blog-sunwin-latest-promotions__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-blog-sunwin-latest-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog-sunwin-latest-promotions__card-title {
  font-size: 1.5em;
  color: var(--sunwin-gold);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

.page-blog-sunwin-latest-promotions__card-description {
  font-size: 0.95em;
  color: var(--sunwin-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog-sunwin-latest-promotions__card-description a {
  color: var(--sunwin-gold);
  text-decoration: none;
}

.page-blog-sunwin-latest-promotions__card-description a:hover {
  text-decoration: underline;
}

.page-blog-sunwin-latest-promotions__card-link {
  display: inline-block;
  color: var(--sunwin-primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-blog-sunwin-latest-promotions__card-link:hover {
  color: var(--sunwin-gold);
  text-decoration: underline;
}

.page-blog-sunwin-latest-promotions__dark-section {
  background-color: var(--sunwin-deep-green);
  color: var(--sunwin-text-main);
  padding: 60px 0;
}

.page-blog-sunwin-latest-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-blog-sunwin-latest-promotions__step-item {
  background-color: var(--sunwin-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--sunwin-border);
}

.page-blog-sunwin-latest-promotions__step-title {
  font-size: 1.6em;
  color: var(--sunwin-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog-sunwin-latest-promotions__btn-secondary {
  display: inline-block;
  background-color: var(--sunwin-background);
  color: var(--sunwin-primary-color);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid var(--sunwin-primary-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog-sunwin-latest-promotions__btn-secondary:hover {
  background-color: var(--sunwin-primary-color);
  color: #ffffff;
}

.page-blog-sunwin-latest-promotions__tip-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog-sunwin-latest-promotions__tip-item {
  background-color: var(--sunwin-card-bg);
  color: var(--sunwin-text-secondary);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  padding-left: 45px;
  border: 1px solid var(--sunwin-border);
}

.page-blog-sunwin-latest-promotions__tip-item::before {
  content: '✔️';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sunwin-glow);
  font-size: 1.2em;
}

.page-blog-sunwin-latest-promotions__tip-item a {
  color: var(--sunwin-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-blog-sunwin-latest-promotions__tip-item a:hover {
  text-decoration: underline;
}

.page-blog-sunwin-latest-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--sunwin-background); /* Ensure consistent dark background */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog-sunwin-latest-promotions__faq-list {
  max-width: 800px;
  width: 100%;
  margin-bottom: 40px;
}

.page-blog-sunwin-latest-promotions__faq-item {
  background-color: var(--sunwin-card-bg);
  border: 1px solid var(--sunwin-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-blog-sunwin-latest-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--sunwin-text-main);
  font-size: 1.1em;
}

.page-blog-sunwin-latest-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-blog-sunwin-latest-promotions__faq-item summary:hover {
  background-color: var(--sunwin-deep-green);
}

.page-blog-sunwin-latest-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--sunwin-gold);
  transition: transform 0.3s ease;
}

.page-blog-sunwin-latest-promotions__faq-item[open] .page-blog-sunwin-latest-promotions__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to a cross */
}

.page-blog-sunwin-latest-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--sunwin-text-secondary);
  font-size: 1em;
}

.page-blog-sunwin-latest-promotions__faq-answer a {
  color: var(--sunwin-gold);
  text-decoration: none;
  font-weight: bold;
}

.page-blog-sunwin-latest-promotions__faq-answer a:hover {
  text-decoration: underline;
}

.page-blog-sunwin-latest-promotions__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: 40px;
}

.page-blog-sunwin-latest-promotions__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-blog-sunwin-latest-promotions__container,
  .page-blog-sunwin-latest-promotions__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-sunwin-latest-promotions__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog-sunwin-latest-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog-sunwin-latest-promotions__hero-description {
    font-size: 1em;
  }

  .page-blog-sunwin-latest-promotions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 10px;
  }

  .page-blog-sunwin-latest-promotions__promo-card,
  .page-blog-sunwin-latest-promotions__step-item,
  .page-blog-sunwin-latest-promotions__tip-item,
  .page-blog-sunwin-latest-promotions__faq-item {
    margin-bottom: 20px;
  }

  .page-blog-sunwin-latest-promotions__card-image,
  .page-blog-sunwin-latest-promotions__hero-image,
  .page-blog-sunwin-latest-promotions__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-sunwin-latest-promotions__promo-types-section,
  .page-blog-sunwin-latest-promotions__how-to-join-section,
  .page-blog-sunwin-latest-promotions__tips-section,
  .page-blog-sunwin-latest-promotions__faq-section,
  .page-blog-sunwin-latest-promotions__conclusion-section {
    padding: 40px 0;
  }

  .page-blog-sunwin-latest-promotions__promo-card .page-blog-sunwin-latest-promotions__card-link {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: var(--sunwin-primary-color);
    color: #ffffff;
    border-radius: 6px;
    margin-top: auto;
  }

  .page-blog-sunwin-latest-promotions__promo-card .page-blog-sunwin-latest-promotions__card-link:hover {
    background-color: var(--sunwin-deep-green);
  }

  .page-blog-sunwin-latest-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-sunwin-latest-promotions__steps-grid,
  .page-blog-sunwin-latest-promotions__card-grid {
    grid-template-columns: 1fr;
  }

  .page-blog-sunwin-latest-promotions__faq-list {
    padding: 0 15px;
  }

  .page-blog-sunwin-latest-promotions__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-blog-sunwin-latest-promotions__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95em;
  }
}