/* style/promotions.css */

/* Variables */
:root {
  --promotions-primary-color: #FF8C1A;
  --promotions-secondary-color: #FFA53A;
  --promotions-card-bg: #17191F;
  --promotions-background: #0D0E12;
  --promotions-text-main: #FFF3E6;
  --promotions-border-color: #A84F0C;
  --promotions-glow-color: #FFB04D;
  --promotions-deep-orange: #D96800;
  --promotions-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--promotions-text-main); /* Light text for dark background */
  background-color: var(--promotions-background); /* Body background is dark */
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--promotions-background);
  overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
  color: var(--promotions-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  color: var(--promotions-text-main);
  margin-bottom: 30px;
}

/* General Section Styling */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--promotions-primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  padding-top: 40px;
}

.page-promotions__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--promotions-text-main);
}

.page-promotions__text-block a {
  color: var(--promotions-secondary-color);
  text-decoration: none;
}

.page-promotions__text-block a:hover {
  text-decoration: underline;
}

.page-promotions__keyword {
  color: var(--promotions-secondary-color);
  font-weight: bold;
}

/* CTA Button Styles */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--promotions-button-gradient);
  color: var(--promotions-text-main);
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 130, 26, 0.4);
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 130, 26, 0.6);
}

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-promotions__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

.page-promotions__cta-button--primary {
  background: var(--promotions-button-gradient);
  color: var(--promotions-text-main);
}

.page-promotions__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--promotions-primary-color);
  color: var(--promotions-primary-color);
  box-shadow: none;
}

.page-promotions__cta-button--secondary:hover {
  background: var(--promotions-primary-color);
  color: var(--promotions-text-main);
  box-shadow: 0 4px 10px rgba(255, 130, 26, 0.3);
}

.page-promotions__cta-buttons-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Promotion Categories Grid */
.page-promotions__categories-section {
  padding: 80px 0;
  background-color: var(--promotions-background);
}

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

.page-promotions__promo-card {
  background-color: var(--promotions-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
  border: 1px solid var(--promotions-border-color);
}

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

.page-promotions__promo-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-promotions__promo-card-title {
  font-size: 1.3rem;
  color: var(--promotions-primary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-promotions__promo-card-description {
  font-size: 0.95rem;
  color: var(--promotions-text-main);
  padding: 0 20px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-promotions__promo-card-description a {
  color: var(--promotions-secondary-color);
  text-decoration: none;
}

.page-promotions__promo-card-description a:hover {
  text-decoration: underline;
}

.page-promotions__promo-card .page-promotions__cta-button {
  margin: 0 20px 20px;
  align-self: flex-start; /* Align button to start */
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--promotions-background);
}

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

.page-promotions__step-item {
  background-color: var(--promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--promotions-border-color);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: var(--promotions-primary-color);
  color: var(--promotions-text-main);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 20px;
}

.page-promotions__step-title {
  font-size: 1.25rem;
  color: var(--promotions-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-description {
  font-size: 0.95rem;
  color: var(--promotions-text-main);
}

.page-promotions__step-description a {
  color: var(--promotions-secondary-color);
  text-decoration: none;
}

.page-promotions__step-description a:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: var(--promotions-background);
}

.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__feature-item {
  background-color: var(--promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--promotions-border-color);
}

.page-promotions__feature-title {
  font-size: 1.25rem;
  color: var(--promotions-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__feature-description {
  font-size: 0.95rem;
  color: var(--promotions-text-main);
}

.page-promotions__feature-description a {
  color: var(--promotions-secondary-color);
  text-decoration: none;
}

.page-promotions__feature-description a:hover {
  text-decoration: underline;
}

/* FAQ Section (Custom Accordion) */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--promotions-background);
}

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

.page-promotions__faq-item {
  background-color: var(--promotions-card-bg);
  border: 1px solid var(--promotions-border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--promotions-primary-color);
  cursor: pointer;
  background-color: var(--promotions-card-bg);
  border-bottom: 1px solid transparent; /* No border initially */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  background-color: rgba(255, 140, 26, 0.1); /* Slightly lighter background when active */
  border-bottom-color: var(--promotions-border-color); /* Add border when active */
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 140, 26, 0.05);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--promotions-secondary-color);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-promotions__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  font-size: 0.95rem;
  color: var(--promotions-text-main);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-bottom: 20px;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

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

.page-promotions__faq-answer a {
  color: var(--promotions-secondary-color);
  text-decoration: none;
}

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

/* CTA Banner Section */
.page-promotions__cta-banner-section {
  padding: 80px 0;
  background-color: var(--promotions-background);
  text-align: center;
}

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

.page-promotions__cta-banner-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--promotions-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__cta-banner-description {
  font-size: 1.1rem;
  color: var(--promotions-text-main);
  margin-bottom: 30px;
}

.page-promotions__cta-banner-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1000px; /* Adjust max-width as needed */
  margin: 0 auto;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }

  /* General mobile text scaling */
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body has padding-top, this is for content */
  }

  .page-promotions__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-promotions__hero-description {
    font-size: 1rem;
  }

  .page-promotions__section-title,
  .page-promotions__cta-banner-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card-image {
    height: 200px; /* Adjust card image height for mobile */
  }
}