/* style/resources-latest-promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a; /* Body background from shared.css */
  --register-btn-bg: #C30808;
  --login-btn-bg: #C30808;
  --font-register-login: #FFFF00;
}

.page-resources-latest-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

.page-resources-latest-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  background-color: var(--background-dark);
}

.page-resources-latest-promotions__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-resources-latest-promotions__subsection-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.page-resources-latest-promotions p {
  margin-bottom: 15px;
  color: var(--text-light);
}

/* Hero Section */
.page-resources-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-resources-latest-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6);
}

.page-resources-latest-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), var(--background-dark));
  z-index: 2;
}

.page-resources-latest-promotions__hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
}

.page-resources-latest-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-resources-latest-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-resources-latest-promotions__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-resources-latest-promotions__btn-primary,
.page-resources-latest-promotions__btn-secondary,
.page-resources-latest-promotions__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-resources-latest-promotions__btn-primary {
  background-color: var(--register-btn-bg);
  color: var(--font-register-login);
  border: 2px solid var(--register-btn-bg);
}

.page-resources-latest-promotions__btn-primary:hover {
  background-color: #a30707; /* Darken #C30808 */
  border-color: #a30707;
}

.page-resources-latest-promotions__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 13px 28px; /* Adjust padding for border */
}

.page-resources-latest-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources-latest-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 1px solid var(--primary-color);
}

.page-resources-latest-promotions__btn-small:hover {
  background-color: #005c2e; /* Darken #017439 */
  border-color: #005c2e;
}

/* Intro Section */
.page-resources-latest-promotions__intro-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-resources-latest-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
}

.page-resources-latest-promotions__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources-latest-promotions__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  min-width: 200px;
  min-height: 150px;
}