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

:root {
  --sbotop-primary-color: #11A84E;
  --sbotop-secondary-color: #22C768;
  --sbotop-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --sbotop-card-bg: #11271B;
  --sbotop-background: #08160F;
  --sbotop-text-main: #F2FFF6;
  --sbotop-text-secondary: #A7D9B8;
  --sbotop-border-color: #2E7A4E;
  --sbotop-glow-color: #57E38D;
  --sbotop-gold-color: #F2C14E;
  --sbotop-divider-color: #1E3A2A;
  --sbotop-deep-green: #0A4B2C;
}

.page-promotions-latest-offers {
  background-color: var(--sbotop-background);
  color: var(--sbotop-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions-latest-offers__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions-latest-offers__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px;
}

.page-promotions-latest-offers__hero-content {
  position: relative; /* Changed from absolute to relative to avoid overlay */
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 30px;
  z-index: 2;
}

.page-promotions-latest-offers__main-title {
  color: var(--sbotop-gold-color);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-promotions-latest-offers__hero-description {
  color: var(--sbotop-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

.page-promotions-latest-offers__btn-primary,
.page-promotions-latest-offers__btn-secondary,
.page-promotions-latest-offers__floating-btn {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions-latest-offers__btn-primary {
  background: var(--sbotop-button-gradient);
  color: var(--sbotop-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions-latest-offers__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions-latest-offers__btn-secondary {
  background: transparent;
  color: var(--sbotop-gold-color);
  border: 2px solid var(--sbotop-gold-color);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-promotions-latest-offers__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-promotions-latest-offers__section {
  padding: 60px 20px;
  background-color: var(--sbotop-background);
}

.page-promotions-latest-offers__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions-latest-offers__section-title {
  color: var(--sbotop-gold-color);
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions-latest-offers__section-description {
  color: var(--sbotop-text-secondary);
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-latest-offers__feature-grid,
.page-promotions-latest-offers__promotion-cards,
.page-promotions-latest-offers__steps-grid,
.page-promotions-latest-offers__terms-grid {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.page-promotions-latest-offers__feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions-latest-offers__promotion-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions-latest-offers__steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions-latest-offers__terms-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions-latest-offers__card {
  background-color: var(--sbotop-card-bg);
  border: 1px solid var(--sbotop-border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--sbotop-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions-latest-offers__feature-title,
.page-promotions-latest-offers__card-title,
.page-promotions-latest-offers__step-title,
.page-promotions-latest-offers__term-title {
  color: var(--sbotop-gold-color);
  font-size: 1.5em;
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.2);
}

.page-promotions-latest-offers__feature-list,
.page-promotions-latest-offers__faq-answer ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.page-promotions-latest-offers__feature-list li,
.page-promotions-latest-offers__faq-answer li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--sbotop-text-secondary);
}

.page-promotions-latest-offers__feature-list li::before,
.page-promotions-latest-offers__faq-answer li::before {
  content: '✔';
  color: var(--sbotop-secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions-latest-offers__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions-latest-offers__step-card {
  text-align: center;
}

.page-promotions-latest-offers__step-number {
  background: var(--sbotop-button-gradient);
  color: var(--sbotop-text-main);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions-latest-offers__read-more {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: var(--sbotop-text-secondary);
}

.page-promotions-latest-offers__read-more a {
  color: var(--sbotop-gold-color);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions-latest-offers__read-more a:hover {
  text-decoration: underline;
}

.page-promotions-latest-offers__faq-section {
  background-color: var(--sbotop-deep-green);
}

.page-promotions-latest-offers__faq-list {
  margin-top: 40px;
}

.page-promotions-latest-offers__faq-item {
  margin-bottom: 20px;
  background-color: var(--sbotop-card-bg);
  border: 1px solid var(--sbotop-border-color);
  border-radius: 10px;
  overflow: hidden;
}

.page-promotions-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--sbotop-gold-color);
  font-weight: bold;
  font-size: 1.2em;
  background-color: rgba(17, 39, 27, 0.7);
}

.page-promotions-latest-offers__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions-latest-offers__faq-qtext {
  flex-grow: 1;
}

.page-promotions-latest-offers__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--sbotop-secondary-color);
}

.page-promotions-latest-offers__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--sbotop-text-secondary);
  font-size: 1em;
  line-height: 1.8;
}

.page-promotions-latest-offers__faq-item[open] .page-promotions-latest-offers__faq-question {
  background-color: var(--sbotop-deep-green);
}

.page-promotions-latest-offers__conclusion .page-promotions-latest-offers__cta-buttons {
  margin-top: 40px;
}

.page-promotions-latest-offers__floating-cta {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none; /* Hidden by default, shown on mobile */
}

.page-promotions-latest-offers__floating-btn {
  padding: 15px 40px;
  background: var(--sbotop-button-gradient);
  color: var(--sbotop-text-main);
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.5);
  font-size: 1.2em;
  white-space: nowrap;
}

.page-promotions-latest-offers__floating-btn:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 8px 25px rgba(42, 209, 111, 0.7);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions-latest-offers__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions-latest-offers__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-promotions-latest-offers__hero-content {
    margin-top: 0;
  }
}

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

  .page-promotions-latest-offers__hero-content {
    padding: 15px;
    margin-top: 15px;
  }

  .page-promotions-latest-offers__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-promotions-latest-offers__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-promotions-latest-offers__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-latest-offers__btn-primary,
  .page-promotions-latest-offers__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions-latest-offers__section {
    padding: 40px 15px;
  }

  .page-promotions-latest-offers__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions-latest-offers__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-promotions-latest-offers__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions-latest-offers__feature-grid,
  .page-promotions-latest-offers__promotion-cards,
  .page-promotions-latest-offers__steps-grid,
  .page-promotions-latest-offers__terms-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-latest-offers__card {
    padding: 25px;
  }

  .page-promotions-latest-offers__feature-title,
  .page-promotions-latest-offers__card-title,
  .page-promotions-latest-offers__step-title,
  .page-promotions-latest-offers__term-title {
    font-size: 1.3em;
  }

  .page-promotions-latest-offers__image-content {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions-latest-offers__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-promotions-latest-offers__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-promotions-latest-offers__floating-cta {
    display: block; /* Show floating button on mobile */
  }
}

/* Ensure all images are responsive and don't overflow */
.page-promotions-latest-offers img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .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;
  }
  
  .page-promotions-latest-offers__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Video specific mobile adaptations if a video section were present */
  .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-section,
  .page-promotions-latest-offers__video-container,
  .page-promotions-latest-offers__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions-latest-offers__video-section {
    padding-top: 10px !important;
  }
  .page-promotions-latest-offers__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Button specific mobile adaptations */
  .page-promotions-latest-offers__cta-button,
  .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;
    padding-right: 15px;
  }
  .page-promotions-latest-offers__cta-buttons,
  .page-promotions-latest-offers__button-group,
  .page-promotions-latest-offers__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions-latest-offers__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}