/* style/blog-boss8-latest-offers.css */

/* Root variables for colors */
:root {
  --boss8-primary-color: #11A84E;
  --boss8-secondary-color: #22C768;
  --boss8-button-gradient-start: #2AD16F;
  --boss8-button-gradient-end: #13994A;
  --boss8-card-bg: #11271B;
  --boss8-background-color: #08160F;
  --boss8-text-main: #F2FFF6;
  --boss8-text-secondary: #A7D9B8;
  --boss8-border-color: #2E7A4E;
  --boss8-glow-color: #57E38D;
  --boss8-gold-color: #F2C14E;
  --boss8-divider-color: #1E3A2A;
  --boss8-deep-green: #0A4B2C;
}

.page-blog-boss8-latest-offers {
  font-family: 'Arial', sans-serif;
  color: var(--boss8-text-main); /* Main text color for the page */
  background-color: var(--boss8-background-color); /* General background */
  line-height: 1.6;
}

.page-blog-boss8-latest-offers__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-blog-boss8-latest-offers__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  background-color: var(--boss8-background-color);
  overflow: hidden;
}

.page-blog-boss8-latest-offers__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-blog-boss8-latest-offers__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-boss8-latest-offers__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

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

.page-blog-boss8-latest-offers__hero-description {
  font-size: 1.2rem;
  color: var(--boss8-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-blog-boss8-latest-offers__btn-primary,
.page-blog-boss8-latest-offers__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-boss8-latest-offers__btn-primary {
  background: linear-gradient(180deg, var(--boss8-button-gradient-start) 0%, var(--boss8-button-gradient-end) 100%);
  color: var(--boss8-text-main);
  border: 2px solid var(--boss8-button-gradient-start);
}

.page-blog-boss8-latest-offers__btn-primary:hover {
  background: linear-gradient(180deg, var(--boss8-button-gradient-end) 0%, var(--boss8-button-gradient-start) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-blog-boss8-latest-offers__btn-secondary {
  background-color: transparent;
  color: var(--boss8-button-gradient-start);
  border: 2px solid var(--boss8-button-gradient-start);
}

.page-blog-boss8-latest-offers__btn-secondary:hover {
  background-color: var(--boss8-button-gradient-end);
  color: var(--boss8-text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

.page-blog-boss8-latest-offers__section {
  padding: 60px 0;
  background-color: var(--boss8-background-color);
}

.page-blog-boss8-latest-offers__section-title {
  font-size: 2.5rem;
  color: var(--boss8-gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-blog-boss8-latest-offers__text-block {
  font-size: 1.1rem;
  color: var(--boss8-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog-boss8-latest-offers__text-block a {
  color: var(--boss8-button-gradient-start);
  text-decoration: underline;
}

.page-blog-boss8-latest-offers__text-block a:hover {
  color: var(--boss8-gold-color);
}

.page-blog-boss8-latest-offers__offer-grid,
.page-blog-boss8-latest-offers__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-boss8-latest-offers__card {
  background-color: var(--boss8-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--boss8-border-color);
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
}

.page-blog-boss8-latest-offers__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-blog-boss8-latest-offers__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--boss8-divider-color);
}

.page-blog-boss8-latest-offers__card-title {
  font-size: 1.5rem;
  color: var(--boss8-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog-boss8-latest-offers__card-description {
  font-size: 1rem;
  color: var(--boss8-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-blog-boss8-latest-offers__card-button {
  margin-top: auto; /* Push button to the bottom */
  width: calc(100% - 30px); /* Adjust width for padding */
}

.page-blog-boss8-latest-offers__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-blog-boss8-latest-offers__list-item {
  background-color: var(--boss8-card-bg);
  border: 1px solid var(--boss8-border-color);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--boss8-text-secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-boss8-latest-offers__list-item strong {
  color: var(--boss8-text-main);
}

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

.page-blog-boss8-latest-offers__faq-item {
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-blog-boss8-latest-offers__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--boss8-text-main);
  cursor: pointer;
  background-color: var(--boss8-deep-green);
  border-bottom: 1px solid var(--boss8-border-color);
  transition: background-color 0.3s ease;
}

.page-blog-boss8-latest-offers__faq-question:hover {
  background-color: var(--boss8-primary-color);
}

.page-blog-boss8-latest-offers__faq-item[open] .page-blog-boss8-latest-offers__faq-question {
  background-color: var(--boss8-primary-color);
}

.page-blog-boss8-latest-offers__faq-question::-webkit-details-marker,
.page-blog-boss8-latest-offers__faq-question::marker {
  display: none;
  content: '';
}

.page-blog-boss8-latest-offers__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--boss8-gold-color);
  margin-left: 15px;
}

.page-blog-boss8-latest-offers__faq-answer {
  padding: 20px 25px;
  background-color: var(--boss8-card-bg);
  color: var(--boss8-text-secondary);
  font-size: 1.05rem;
  border-top: 1px solid var(--boss8-divider-color);
}

.page-blog-boss8-latest-offers__faq-image-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-blog-boss8-latest-offers__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--boss8-border-color);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-blog-boss8-latest-offers__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-blog-boss8-latest-offers__section-title {
    font-size: 2rem;
  }
  .page-blog-boss8-latest-offers__hero-image-wrapper {
    max-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-blog-boss8-latest-offers__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog-boss8-latest-offers__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-blog-boss8-latest-offers__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-blog-boss8-latest-offers__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-boss8-latest-offers__btn-primary,
  .page-blog-boss8-latest-offers__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog-boss8-latest-offers__section {
    padding: 40px 0;
  }

  .page-blog-boss8-latest-offers__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-blog-boss8-latest-offers__text-block {
    font-size: 1rem;
  }

  .page-blog-boss8-latest-offers__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Image responsiveness */
  .page-blog-boss8-latest-offers img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-boss8-latest-offers__offer-card,
  .page-blog-boss8-latest-offers__step-card,
  .page-blog-boss8-latest-offers__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-boss8-latest-offers__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-blog-boss8-latest-offers__faq-answer {
    font-size: 0.95rem;
    padding: 15px 20px;
  }

  .page-blog-boss8-latest-offers__card-image {
    height: auto;
    max-height: 180px;
  }
  .page-blog-boss8-latest-offers__faq-image {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  .page-blog-boss8-latest-offers__section-title {
    font-size: 1.5rem;
  }
  .page-blog-boss8-latest-offers__card-title {
    font-size: 1.3rem;
  }
  .page-blog-boss8-latest-offers__faq-question {
    font-size: 1rem;
  }
  .page-blog-boss8-latest-offers__faq-toggle {
    font-size: 1.5rem;
  }
}