/* style/promotions.css */

/* Custom properties for colors from the shared stylesheet */
:root {
  --primary-color: #017439; /* Main color */
  --secondary-color: #FFFFFF; /* Auxiliary color, also body background */
  --register-btn-bg: #C30808; /* Register/Login button background */
  --register-login-font: #FFFF00; /* Register/Login button font color */
  --text-dark: #333333; /* Dark text for light backgrounds */
  --text-light: #ffffff; /* Light text for dark backgrounds */
  --border-color: #e0e0e0;
  --bg-light-section: #f9f9f9;
}

/* Base styles for the page content */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Body background is white */
}

/* Section common styles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9d68 100%); /* Gradient background for visual appeal */
  color: var(--text-light);
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Limit image width to prevent it from being too wide */
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--register-login-font); /* Yellow for main title */
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

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

.page-promotions__btn-register,
.page-promotions__btn-login,
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-register,
.page-promotions__btn-login {
  background: var(--register-btn-bg); /* Red */
  color: var(--register-login-font); /* Yellow */
  border: 2px solid var(--register-login-font);
}

.page-promotions__btn-register:hover,
.page-promotions__btn-login:hover {
  background: #a40707; /* Darker red on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-primary:hover {
  background: #005c2d; /* Darker green on hover */
  border-color: #005c2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary:hover {
  background: #f5f5f5; /* Light grey on hover */
  color: #005c2d; /* Darker green on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-large {
  padding: 18px 50px;
  font-size: 1.3em;
  min-width: 250px;
}

/* Section specific styles */
.page-promotions__intro-section,
.page-promotions__how-to-claim-section,
.page-promotions__why-choose-section,
.page-promotions__contact-cta-section {
  padding: 80px 0;
}

.page-promotions__categories-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background for these sections */
  color: var(--text-light);
}

.page-promotions__categories-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
  color: var(--register-login-font); /* Yellow for titles on dark background */
}

.page-promotions__categories-section .page-promotions__text-block,
.page-promotions__terms-section .page-promotions__text-block,
.page-promotions__faq-section .page-promotions__text-block {
  color: var(--text-light);
}

.page-promotions__categories-section .page-promotions__card-text {
  color: var(--text-dark); /* Ensure text in card on dark section is dark */
}

.page-promotions__categories-section .page-promotions__card-title {
  color: var(--primary-color); /* Ensure title in card on dark section is dark */
}

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

.page-promotions__card {
  background: var(--secondary-color); /* White background for cards */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have a consistent height */
}

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

.page-promotions__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
  flex-grow: 1; /* Allow text to grow and fill space */
}

.page-promotions__card .page-promotions__btn-primary {
  margin-top: 25px;
  align-self: center;
}

.page-promotions__steps-list,
.page-promotions__terms-list,
.page-promotions__advantages-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-promotions__steps-list li,
.page-promotions__advantages-list li {
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-promotions__terms-section a {
  color: var(--register-login-font); /* Yellow for links on dark background */
  text-decoration: underline;
}

.page-promotions__how-to-claim-section strong {
  color: var(--primary-color);
}

.page-promotions__how-to-claim-section a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__contact-cta-content {
  text-align: center;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--secondary-color); /* White background for FAQ items */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color); /* White background for question */
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color); /* Green for question text */
}

.page-promotions__faq-question:hover {
  background: var(--bg-light-section); /* Light gray on hover */
  border-color: #c0c0c0; /* Darker border */
}

.page-promotions__faq-question:active {
  background: #e0e0e0; /* Even darker gray */
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: inherit; /* Inherit color from parent */
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Green 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: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--bg-light-section);
  border-color: #c0c0c0;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: var(--register-btn-bg); /* Red for active toggle */
}

.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 15px;
  opacity: 0;
  background: var(--bg-light-section); /* Light gray background for answer */
  color: var(--text-dark); /* Dark text for answer */
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-answer p {
  margin: 0;
  padding: 0;
  color: var(--text-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 3em;
  }

  .page-promotions__description {
    font-size: 1.2em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__card {
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
}