/* style/promotions.css */

/* --- Base Styles & Layout --- */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: var(--dark-bg-1, #0d0d0d); /* Inherit from shared.css or fallback */
}

/* Ensure content is not hidden by fixed header */
.page-promotions__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--dark-bg-1, #0d0d0d) 0%, #1a1a1a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-promotions__main-title {
  font-size: 3.2em;
  color: var(--primary-color, #FFD700); /* Gold color for main title */
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-weight: bold;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color, #FFD700);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color, #8B0000);
  border-radius: 2px;
}

/* --- CTA Buttons --- */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button--primary {
  background: var(--primary-color, #FFD700);
  color: #333333; /* Dark text for gold background for contrast */
}

.page-promotions__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background: var(--secondary-color, #8B0000);
  color: #ffffff; /* White text for dark red background */
  border: 2px solid var(--secondary-color, #8B0000);
}

.page-promotions__cta-button--secondary:hover {
  background: #6a0000; /* Slightly darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
  border-radius: 6px;
  background: var(--primary-color, #FFD700);
  color: #333333;
}

.page-promotions__cta-button--small:hover {
  background: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* --- Category Grid Section --- */
.page-promotions__categories-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-promotions__category-item {
  background: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-promotions__category-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
}

.page-promotions__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
}

.page-promotions__category-name {
  font-size: 1.4em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 10px;
}

.page-promotions__category-description {
  font-size: 0.95em;
  color: #cccccc;
}

/* --- Featured Promotions Section --- */
.page-promotions__featured-promos-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1, #0d0d0d);
}

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

.page-promotions__promo-card {
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #333;
}

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

.page-promotions__promo-title {
  font-size: 1.6em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__promo-description {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__promo-features li {
  color: #f0f0f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 0.95em;
}

.page-promotions__promo-features li i {
  color: var(--secondary-color, #8B0000);
  margin-right: 10px;
  font-size: 1.1em;
}

/* --- Why Choose Section --- */
.page-promotions__why-choose-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

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

.page-promotions__why-choose-item {
  background: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__why-choose-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__why-choose-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__why-choose-item h3 {
  font-size: 1.5em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 15px;
}

.page-promotions__why-choose-item p {
  color: #cccccc;
  font-size: 0.95em;
}

/* --- How To Claim Section --- */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1, #0d0d0d);
  text-align: center;
}

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

.page-promotions__step-item {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary-color, #8B0000);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-item h3 {
  font-size: 1.4em;
  color: var(--primary-color, #FFD700);
  margin-bottom: 15px;
}

.page-promotions__step-item p {
  color: #cccccc;
  font-size: 0.95em;
}

.page-promotions__step-item p a {
  color: var(--primary-color, #FFD700);
  text-decoration: none;
  font-weight: bold;
}

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

.page-promotions__final-cta {
  margin-top: 50px;
}

.page-promotions__final-cta p {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* --- Global Image Styles (Responsive) --- */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Font Awesome for icons (assuming shared.css or header includes it) */
.fas {
  font-family: "Font Awesome 5 Free";
  font-weight: 900; /* For solid icons */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__category-grid,
  .page-promotions__promo-grid,
  .page-promotions__why-choose-grid,
  .page-promotions__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 100px !important; /* Mobile padding-top */
    padding-bottom: 40px;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__categories-section,
  .page-promotions__featured-promos-section,
  .page-promotions__why-choose-section,
  .page-promotions__how-to-claim-section {
    padding: 50px 0;
  }
  .page-promotions__container {
    padding: 0 15px;
  }

  /* Image responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__category-image,
  .page-promotions__promo-image {
    height: 160px; /* Adjust height for mobile */
  }
  .page-promotions__why-choose-icon {
    width: 60px;
    height: 60px;
  }
  .page-promotions__promo-card {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
  .page-promotions__promo-title {
    font-size: 1.4em;
  }
  .page-promotions__promo-description,
  .page-promotions__promo-features li,
  .page-promotions__why-choose-item p,
  .page-promotions__step-item p {
    font-size: 0.9em;
  }
  .page-promotions__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__category-grid,
  .page-promotions__promo-grid,
  .page-promotions__why-choose-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr; /* Single column layout for very small screens */
  }
  .page-promotions__promo-image {
    height: 180px;
  }
  .page-promotions__promo-content {
    padding: 20px;
  }
  .page-promotions__promo-title {
    font-size: 1.2em;
  }
  .page-promotions__final-cta p {
    font-size: 1em;
  }
}