/* style/promotions.css */

/* Base Styles & Page Specific Overrides */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark body background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css, assumed dark */
}

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

/* Fixed Navigation Spacing */
.page-promotions__hero-banner {
  padding-top: 120px; /* Adjust for fixed header height on desktop */
  position: relative;
  overflow: hidden;
}

/* Sections */
.page-promotions__dark-section {
  background-color: var(--dark-bg-2, #1a1a1a); /* Slightly lighter dark background */
  color: #f0f0f0;
  padding: 60px 0;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-promotions__section-title {
  font-size: 36px;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__text-block {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: center;
}

/* Hero Banner */
.page-promotions__hero-banner {
  background: linear-gradient(135deg, #CC0000, #FFD700); /* Brand colors gradient */
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__hero-title {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #CC0000; /* Primary brand red */
  color: #ffffff;
  box-shadow: 0 8px 15px rgba(204, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  background-color: #e60000;
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(204, 0, 0, 0.4);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Secondary brand gold */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 215, 0, 0.3);
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 40px 0;
}

.page-promotions__intro-section .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Promotion Types Grid */
.page-promotions__types-section {
  padding: 80px 0;
}

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

.page-promotions__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-promotions__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #CC0000; /* Red for card titles */
  padding: 20px 25px 10px;
  line-height: 1.3;
}

.page-promotions__card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 25px 20px;
  flex-grow: 1;
}

.page-promotions__card-btn {
  margin: 0 25px 25px;
  background-color: #FFD700; /* Gold for card buttons */
  color: #333333;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.page-promotions__card-btn:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 80px 0;
}

.page-promotions__list {
  list-style: disc inside;
  max-width: 900px;
  margin: 30px auto;
  padding-left: 20px;
  text-align: left;
}

.page-promotions__list li {
  margin-bottom: 10px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-promotions__list li p {
  display: inline;
  color: #f0f0f0; /* Ensure paragraph text inside list is also light */
  text-align: left;
}

/* Guide Section */
.page-promotions__guide-section {
  padding: 80px 0;
}

.page-promotions__ordered-list {
  list-style: decimal inside;
  max-width: 900px;
  margin: 30px auto;
  padding-left: 20px;
  text-align: left;
}

.page-promotions__ordered-list li {
  margin-bottom: 15px;
  font-size: 17px;
  color: #333333;
}

.page-promotions__ordered-list li p {
  display: inline;
  color: #333333; /* Ensure paragraph text inside list is dark */
  text-align: left;
}

.page-promotions__ordered-list li a {
  color: #CC0000;
  text-decoration: underline;
}

.page-promotions__ordered-list li a:hover {
  color: #e60000;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--dark-bg-3, #2a2a2a); /* Darker background for question */
  border: 1px solid var(--dark-bg-4, #3a3a3a);
  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-color: var(--dark-bg-4, #3a3a3a);
  border-color: #FFD700;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
  color: #CC0000; /* Red when active */
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: var(--dark-bg-5, #222222); /* Slightly lighter dark background for answer */
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-promotions__faq-answer p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 10px;
}

/* Contact Section */
.page-promotions__contact-section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__contact-section .page-promotions__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Related Posts Section */
.page-promotions__related-posts-section {
  padding: 80px 0;
}

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

.page-promotions__blog-card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for dark theme */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-promotions__blog-card-title a {
  color: #FFD700; /* Gold for blog titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__blog-card-title a:hover {
  color: #CC0000; /* Red on hover */
}

.page-promotions__blog-card-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__blog-card-link {
  display: inline-block;
  color: #CC0000; /* Red for 'Read More' links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-promotions__blog-card-link:hover {
  color: #FFD700;
}

/* Utility Classes for Contrast Fix */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* 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: 30px;
  }
  .page-promotions__card-title {
    font-size: 22px;
  }
  .page-promotions__card-image {
    height: 220px;
  }
  .page-promotions__list,
  .page-promotions__ordered-list {
    padding-left: 15px;
  }
  .page-promotions__faq-question h3 {
    font-size: 17px;
  }
  .page-promotions__blog-card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-banner {
    padding-top: 100px; /* Adjust for fixed header height on mobile */
    padding-bottom: 60px;
  }
  .page-promotions__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-btn {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-promotions__text-block {
    font-size: 16px;
  }
  .page-promotions__dark-section,
  .page-promotions__light-bg {
    padding: 40px 0;
  }
  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card-image {
    height: 200px;
  }
  .page-promotions__card-title {
    font-size: 20px;
    padding: 15px 20px 8px;
  }
  .page-promotions__card-description {
    font-size: 15px;
    padding: 0 20px 15px;
  }
  .page-promotions__card-btn {
    margin: 0 20px 20px;
  }
  .page-promotions__list,
  .page-promotions__ordered-list {
    margin: 20px auto;
    padding-left: 10px;
  }
  .page-promotions__list li,
  .page-promotions__ordered-list li {
    font-size: 15px;
    margin-bottom: 8px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
  .page-promotions__blog-card-image {
    height: 150px;
  }
  .page-promotions__blog-card-title {
    font-size: 18px;
  }
  .page-promotions__blog-card-excerpt {
    font-size: 14px;
  }
  /* Mobile image responsive fix */
  .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__intro-section,
  .page-promotions__types-section,
  .page-promotions__terms-section,
  .page-promotions__guide-section,
  .page-promotions__faq-section,
  .page-promotions__contact-section,
  .page-promotions__related-posts-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}