/* style/promotions.css */

:root {
    --primary-color: #003366; /* Deep blue */
    --secondary-color: #FFD700; /* Gold */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light); /* Assuming shared.css sets a light background for body */
}

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

/* Ensure content is not hidden by fixed header */
.page-promotions__hero-banner {
    padding-top: 180px; /* Desktop: Adjust based on actual header height */
    padding-bottom: 60px;
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.page-promotions__hero-banner .page-promotions__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-promotions__hero-content {
    max-width: 800px;
}

.page-promotions__main-title {
    font-size: 3.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-promotions__btn-primary:hover {
    background: darken(var(--secondary-color), 10%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-promotions__promotions-overview,
.page-promotions__game-types,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-promotions__vip-program,
.page-promotions__news-updates {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-promotions__vip-program .page-promotions__section-title,
.page-promotions__news-updates .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__vip-program .page-promotions__section-description,
.page-promotions__news-updates .page-promotions__section-description,
.page-promotions__vip-program p {
    color: var(--text-light);
}

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

.page-promotions__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-promotions__card-img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__card-text {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 0.95em;
}

.page-promotions__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__vip-program .page-promotions__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.page-promotions__vip-program .page-promotions__text-content {
    flex: 1;
}

.page-promotions__vip-program .page-promotions__image-content {
    flex: 1;
    text-align: center;
}

.page-promotions__vip-program .page-promotions__responsive-img {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__vip-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 30px;
}

.page-promotions__vip-list li {
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 1.05em;
    color: var(--text-light);
}

.page-promotions__vip-list li::before {
    content: '⭐';
    margin-right: 10px;
    font-size: 1.2em;
}

.page-promotions__grid--small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.page-promotions__game-card-small {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-promotions__game-icon-small {
    max-width: 150px; /* Increased size, min 200x200px requirement is for image gallery, these are illustrative icons */
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.page-promotions__game-title-small {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.page-promotions__game-desc-small {
    font-size: 0.9em;
    color: var(--text-dark);
}

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

.page-promotions__link-text:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

.page-promotions__news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

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

.page-promotions__news-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-promotions__news-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-promotions__news-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__news-title a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__news-excerpt {
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-promotions__read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-promotions__faq-answer p {
    margin: 0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

.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(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-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(--secondary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__vip-program .page-promotions__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-program .page-promotions__text-content,
    .page-promotions__vip-program .page-promotions__image-content {
        max-width: 100%;
    }
    .page-promotions__vip-list {
        padding-left: 20px;
        text-align: left;
    }
    .page-promotions__card-img {
        height: 180px;
    }
    .page-promotions__news-img {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-banner {
        padding-top: 160px !important; /* Mobile: Adjust based on actual header height */
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 0.95em;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-img {
        height: 150px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__card-text {
        font-size: 0.9em;
    }
    .page-promotions__btn-secondary {
        padding: 8px 20px;
        font-size: 0.9em;
    }
    .page-promotions__grid,
    .page-promotions__grid--small,
    .page-promotions__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__game-icon-small {
        max-width: 120px;
    }
    .page-promotions__game-title-small {
        font-size: 1.2em;
    }
    .page-promotions__news-img {
        height: 160px;
    }
    .page-promotions__news-content {
        padding: 20px;
    }
    .page-promotions__news-title {
        font-size: 1.2em;
    }
    .page-promotions__news-excerpt {
        font-size: 0.9em;
    }
    .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;
    }
    /* Mobile image responsive fix */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__hero-banner .page-promotions__container,
    .page-promotions__promotions-overview .page-promotions__container,
    .page-promotions__vip-program .page-promotions__container,
    .page-promotions__game-types .page-promotions__container,
    .page-promotions__news-updates .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}