/* style/promotions-latest-offers.css */

/* Base Styles & Typography */
.page-promotions-latest-offers {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background */
}

.page-promotions-latest-offers__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-promotions-latest-offers__section-title {
  font-size: 2.5em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions-latest-offers__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-promotions-latest-offers__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.9)), url('[GALLERY:hero_bg:1920x1080:loto188,promotions,hero_background,casino_lights]') no-repeat center center/cover;
  padding-top: calc(var(--header-offset, 120px) + 60px);
}

.page-promotions-latest-offers__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions-latest-offers__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-promotions-latest-offers__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-promotions-latest-offers__btn-primary,
.page-promotions-latest-offers__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-latest-offers__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-promotions-latest-offers__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  color: #FFFFFF;
}

.page-promotions-latest-offers__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-promotions-latest-offers__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #017439;
}

/* General Section Styling */
.page-promotions-latest-offers__overview-section,
.page-promotions-latest-offers__featured-promotions-section,
.page-promotions-latest-offers__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-promotions-latest-offers__how-to-claim-section,
.page-promotions-latest-offers__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for sections */
  color: #FFFFFF;
}

/* Cards */
.page-promotions-latest-offers__card {
  background-color: rgba(255, 255, 255, 0.08); /* Light transparent background for dark body */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  height: 100%; /* Ensure cards in grid have same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions-latest-offers__light-bg {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.page-promotions-latest-offers__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

/* Feature Grid */
.page-promotions-latest-offers__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions-latest-offers__feature-icon {
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-latest-offers__feature-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions-latest-offers__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Claim Section */
.page-promotions-latest-offers__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions-latest-offers__step-title {
  font-size: 1.6em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions-latest-offers__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-promotions-latest-offers__note-text {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #f0f0f0;
}

/* Featured Promotions */
.page-promotions-latest-offers__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions-latest-offers__promotion-card {
  text-align: left;
  padding: 0; /* Remove padding from card as content has its own */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-promotions-latest-offers__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: block;
}

.page-promotions-latest-offers__promotion-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions-latest-offers__promotion-title {
  font-size: 1.4em;
  color: #FFFFFF;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions-latest-offers__promotion-text {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-promotions-latest-offers__promotion-card .page-promotions-latest-offers__btn-primary {
  width: 100%;
  padding: 12px 20px;
  font-size: 1em;
}

/* Video Section */
.page-promotions-latest-offers__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 12px;
}

.page-promotions-latest-offers__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-promotions-latest-offers__video-cta {
  margin-top: 30px;
  display: block;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-promotions-latest-offers__faq-list {
  margin-top: 50px;
}

.page-promotions-latest-offers__faq-item {
  margin-bottom: 15px;
  text-align: left;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-promotions-latest-offers__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions-latest-offers__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
  font-weight: 600;
}

.page-promotions-latest-offers__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  color: #FFFFFF;
  transition: transform 0.3s ease;
}

.page-promotions-latest-offers__faq-item.active .page-promotions-latest-offers__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions-latest-offers__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-promotions-latest-offers__faq-item.active .page-promotions-latest-offers__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

.page-promotions-latest-offers__faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* CTA Section */
.page-promotions-latest-offers__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-promotions-latest-offers__cta-title {
  font-size: 2.8em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions-latest-offers__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-promotions-latest-offers__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-latest-offers__hero-title {
    font-size: 3em;
  }
  .page-promotions-latest-offers__section-title {
    font-size: 2em;
  }
  .page-promotions-latest-offers__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-promotions-latest-offers {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions-latest-offers__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-promotions-latest-offers__hero-title {
    font-size: 2.5em;
  }

  .page-promotions-latest-offers__hero-description {
    font-size: 1em;
  }

  .page-promotions-latest-offers__btn-primary,
  .page-promotions-latest-offers__btn-secondary,
  .page-promotions-latest-offers a[class*="button"],
  .page-promotions-latest-offers a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add margin for stacking */
  }
  
  .page-promotions-latest-offers__hero-cta-group,
  .page-promotions-latest-offers__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-promotions-latest-offers__container {
    padding: 0 15px;
  }

  .page-promotions-latest-offers__section-title {
    font-size: 1.8em;
  }

  .page-promotions-latest-offers__section-description {
    font-size: 0.95em;
  }

  .page-promotions-latest-offers__features-grid,
  .page-promotions-latest-offers__steps-grid,
  .page-promotions-latest-offers__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-latest-offers__feature-item,
  .page-promotions-latest-offers__step-item,
  .page-promotions-latest-offers__promotion-card,
  .page-promotions-latest-offers__faq-item {
    padding: 20px;
  }

  .page-promotions-latest-offers__feature-icon {
    max-width: 150px;
  }

  .page-promotions-latest-offers__promotion-image {
    height: 200px;
  }

  .page-promotions-latest-offers__video-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-latest-offers video,
  .page-promotions-latest-offers__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions-latest-offers__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    overflow: hidden !important;
  }

  .page-promotions-latest-offers__faq-question,
  .page-promotions-latest-offers__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness for content area */
  .page-promotions-latest-offers img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions-latest-offers__section,
  .page-promotions-latest-offers__card,
  .page-promotions-latest-offers__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}