/* style/promotions.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-dark: #0d0d0d;
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --card-background-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-promotions {
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--background-dark);
}

/* Fixed navigation bar padding */
.page-promotions__banner-section {
    padding-top: 180px; /* Desktop: Adjust based on fixed header height */
    padding-bottom: 60px;
    background: linear-gradient(135deg, #007BFF, #28A745); /* Using brand colors for a vibrant intro */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-promotions__banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__banner-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark overlay for text readability */
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__banner-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__banner-description {
    font-size: 18px;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-promotions__btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.page-promotions__btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.page-promotions__btn-secondary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.page-promotions__center-button {
    margin-top: 30px;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--background-dark);
    border-radius: 8px;
}

.page-promotions__overview-section,
.page-promotions__types-section,
.page-promotions__featured-offers-section,
.page-promotions__news-section,
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-promotions__text-block {
    font-size: 17px;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__text-block strong {
    color: var(--primary-color);
}

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

.page-promotions__card {
    background: var(--card-background-dark); /* Dark card background */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.page-promotions__card-image {
    width: 100%;
    max-width: 300px; /* Ensure images are not too small */
    height: 200px;
    object-fit: contain; /* Use contain to preserve aspect ratio for logos/icons */
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

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

.page-promotions__card-description {
    font-size: 15px;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__offer-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.page-promotions__offer-card {
    background: var(--card-background-light); /* Light card background for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: var(--text-dark); /* Dark text for light background */
}

.page-promotions__offer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.page-promotions__offer-logo {
    width: 80px; /* Larger size for game logos */
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.page-promotions__offer-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

.page-promotions__offer-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.page-promotions__more-offers {
    text-align: center;
    font-size: 18px;
    color: #e0e0e0;
    margin-top: 40px;
}

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

.page-promotions__article-card {
    background: var(--card-background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.page-promotions__article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-promotions__article-card h3 {
    padding: 20px 20px 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__article-link {
    color: var(--primary-color);
    text-decoration: none;
}

.page-promotions__article-link:hover {
    text-decoration: underline;
}

.page-promotions__article-excerpt {
    padding: 0 20px;
    font-size: 15px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

.page-promotions__read-more:hover {
    color: #218838;
    text-decoration: underline;
}

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-background-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.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 20px;
  opacity: 0;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 8px;
  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(0, 123, 255, 0.15);
  border-color: rgba(0, 123, 255, 0.3);
}

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

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

.page-promotions__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__banner-title {
        font-size: 38px;
    }
    .page-promotions__banner-description {
        font-size: 17px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-promotions__banner-section {
        padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
        padding-bottom: 40px;
    }
    .page-promotions__banner-content {
        padding: 25px 20px;
    }
    .page-promotions__banner-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-promotions__banner-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-promotions__container {
        padding: 20px 15px;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 25px;
    }
    .page-promotions__card-image {
        height: 150px;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-description {
        font-size: 14px;
    }
    .page-promotions__offer-card {
        padding: 20px;
    }
    .page-promotions__offer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-promotions__offer-logo {
        width: 60px;
        height: 60px;
    }
    .page-promotions__offer-title {
        font-size: 20px;
    }
    .page-promotions__offer-description {
        font-size: 15px;
    }
    .page-promotions__article-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__article-image {
        height: 180px;
    }
    .page-promotions__article-card h3 {
        font-size: 18px;
        padding: 15px 15px 0;
    }
    .page-promotions__article-excerpt {
        font-size: 14px;
        padding: 0 15px;
    }
    .page-promotions__read-more {
        padding: 10px 15px 15px;
    }
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__banner-section,
    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__featured-offers-section,
    .page-promotions__news-section,
    .page-promotions__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}