/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* A very light grey for subtle contrast with white cards */
}

/* Fixed header offset */
.page-promotions__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first visible section */
  position: relative;
  overflow: hidden; /* Ensure content doesn't spill */
}

/* Hero Section */
.page-promotions__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.page-promotions__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register/Login font color for emphasis */
}

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

/* Call to Action Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border-color: #C30808;
  margin: 10px;
}

.page-promotions__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand primary color */
  border-color: #017439;
  margin: 10px;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #ffffff; /* Explicitly white background for content area */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  margin-top: -50px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 3;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #C30808; /* Accent color */
  border-radius: 2px;
}

.page-promotions__section-title--center {
  text-align: center;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

.page-promotions__text-block--center {
  text-align: center;
}

/* Promotion Grid (Cards) */
.page-promotions__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

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

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

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-promotions__card-title {
  font-size: 1.4em;
  color: #017439;
  margin: 0 15px 10px 15px;
  line-height: 1.3;
}

.page-promotions__card-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
  color: #C30808;
}

.page-promotions__card-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}