/* style/promotions.css */

:root {
    --primary-color: #CC0000; /* W88 Red */
    --secondary-color: #FFD700; /* Gold Accent */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f1f3f5;
    --background-card: #ffffff;
    --border-light: #e0e0e0;
}

/* Ensure content is visible below fixed header */
.page-promotions {
    padding-top: 100px; /* Adjust based on shared header height */
    background: var(--dark-bg-1); /* Inherited from shared.css, assuming dark */
    color: var(--text-light); /* Default text color for dark background */
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-light); /* Title color for dark background */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-promotions__paragraph {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light); /* Paragraph color for dark background */
}

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

.page-promotions__cta-button:hover {
    background: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* HERO Banner Section */
.page-promotions__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px; /* desktop padding-top for fixed header */
}

.page-promotions__hero-image {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.page-promotions__hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.page-promotions__hero-title {
    font-size: 48px;
    color: var(--secondary-color); /* Gold for hero title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    color: var(--text-light); /* White for hero description */
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* General Introduction Section */
.page-promotions__general-intro {
    background: var(--dark-bg-1);
    color: var(--text-light);
}

.page-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-promotions__feature-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__feature-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Detailed Promotions Section */
.page-promotions__detailed-promos {
    background: var(--dark-bg-1);
    color: var(--text-light);
}

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

.page-promotions__promo-card {
    background: var(--background-card);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-promotions__promo-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-promotions__promo-desc {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__promo-desc strong {
    color: var(--primary-color);
}

.page-promotions__promo-card .page-promotions__cta-button {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 12px 20px;
}

/* Guide Section */
.page-promotions__guide {
    background: var(--dark-bg-1);
    color: var(--text-light);
}

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-promotions__guide-list li {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__guide-list li strong {
    color: var(--secondary-color);
}

.page-promotions__guide-list li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__guide-list li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    background: var(--dark-bg-1);
    color: var(--text-light);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-promotions__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

.page-promotions__faq-answer p {
    color: var(--text-light);
    font-size: 15px;
}

/* Latest News Section */
.page-promotions__latest-news {
    background: var(--dark-bg-1);
    color: var(--text-light);
}

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

.page-promotions__news-card {
    background: var(--background-card);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.page-promotions__news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-promotions__news-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__news-link:hover {
    color: #a30000;
    text-decoration: underline;
}

.page-promotions__news-excerpt {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__news-date {
    font-size: 13px;
    color: #666666;
    display: block;
    text-align: right;
}

.page-promotions__view-all-button {
    text-align: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__promo-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        padding-top: 100px !important; /* Mobile padding-top for fixed header */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-promotions__paragraph {
        font-size: 15px;
    }
    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }

    /* HERO Banner */
    .page-promotions__hero-banner {
        padding: 10px 0 40px !important;
    }
    .page-promotions__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-promotions__hero-img {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Features Grid */
    .page-promotions__features-grid {
        gap: 20px;
    }
    .page-promotions__feature-item {
        padding: 25px;
    }
    .page-promotions__feature-title {
        font-size: 20px;
    }

    /* Promo Grid */
    .page-promotions__promo-grid {
        gap: 20px;
    }
    .page-promotions__promo-img {
        height: 160px;
    }
    .page-promotions__promo-content {
        padding: 20px;
    }
    .page-promotions__promo-title {
        font-size: 20px;
    }
    .page-promotions__promo-desc {
        font-size: 14px;
    }
    .page-promotions__promo-card .page-promotions__cta-button {
        font-size: 14px;
        padding: 10px 15px;
    }

    /* Guide List */
    .page-promotions__guide-list li {
        padding: 15px 20px;
        font-size: 15px;
    }

    /* FAQ */
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }

    /* News Grid */
    .page-promotions__news-grid {
        gap: 20px;
    }
    .page-promotions__news-img {
        height: 150px;
    }
    .page-promotions__news-content {
        padding: 15px;
    }
    .page-promotions__news-title {
        font-size: 18px;
    }
    .page-promotions__news-excerpt {
        font-size: 13px;
    }
    .page-promotions__news-date {
        font-size: 12px;
    }
    .page-promotions__view-all-button .page-promotions__cta-button {
        font-size: 15px;
        padding: 12px 20px;
    }

    /* Ensure images and containers adapt to mobile */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-banner,
    .page-promotions__promo-card,
    .page-promotions__news-card {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
}