.page-resources-latest-trends {
  color: #ffffff; /* Body background is dark, so text is light */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by sticky header */
  background-color: #0d1117;
}

.page-resources-latest-trends__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-latest-trends__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources-latest-trends__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #FFD700; /* Auxiliary color for titles */
}

.page-resources-latest-trends__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources-latest-trends p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Hero Banner */
.page-resources-latest-trends__hero-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 0;
  background-color: #1A202C;
  overflow: hidden;
}

.page-resources-latest-trends__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-resources-latest-trends__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-resources-latest-trends__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px;
  color: #ffffff;
}

.page-resources-latest-trends__main-title {
  font-size: 52px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

.page-resources-latest-trends__subtitle {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* CTA Button */
.page-resources-latest-trends__cta-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-latest-trends__cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-resources-latest-trends__cta-button--small {
    padding: 12px 25px;
    font-size: 18px;
}

.page-resources-latest-trends__overview p {
    text-align: left;
}

/* Trend Items */
.page-resources-latest-trends__trends .page-resources-latest-trends__container {
    background-color: #1A202C;
    padding: 40px;
    border-radius: 10px;
}

.page-resources-latest-trends__trend-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-resources-latest-trends__trend-item--reverse {
  flex-direction: row-reverse;
}

.page-resources-latest-trends__trend-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources-latest-trends__trend-content {
  flex: 1;
  max-width: 50%;
}

.page-resources-latest-trends__trend-content p {
  color: #f0f0f0;
}

.page-resources-latest-trends__text-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-resources-latest-trends__text-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* Tech Experience Section */
.page-resources-latest-trends__tech-experience .page-resources-latest-trends__container {
    background-color: #1A202C;
    padding: 40px;
    border-radius: 10px;
}

.page-resources-latest-trends__tech-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  text-align: left;
}

.page-resources-latest-trends__tech-item--reverse {
  flex-direction: row-reverse;
}

.page-resources-latest-trends__tech-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-resources-latest-trends__tech-content {
  flex: 1;
  max-width: 50%;
}

.page-resources-latest-trends__tech-content p {
    color: #f0f0f0;
}

/* Promotions */
.page-resources-latest-trends__promotions .page-resources-latest-trends__container {
    background-color: #1A202C;
    padding: 40px;
    border-radius: 10px;
}

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

.page-resources-latest-trends__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources-latest-trends__promo-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-resources-latest-trends__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 20px;
}

.page-resources-latest-trends__promo-title {
  font-size: 22px;
  font-weight: 600;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources-latest-trends__promo-card p {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
}

.page-resources-latest-trends__promo-button {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-latest-trends__promo-button:hover {
  background-color: #e6c200;
}

.page-resources-latest-trends__center-button {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-resources-latest-trends__faq-section .page-resources-latest-trends__container {
    background-color: #1A202C;
    padding: 40px;
    border-radius: 10px;
}

.page-resources-latest-trends__faq-list {
  margin-top: 40px;
}

.page-resources-latest-trends__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources-latest-trends__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  text-align: left;
}

.page-resources-latest-trends__faq-item.active .page-resources-latest-trends__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 0 5px 5px;
}

.page-resources-latest-trends__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-latest-trends__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.page-resources-latest-trends__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources-latest-trends__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources-latest-trends__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-latest-trends__faq-item.active .page-resources-latest-trends__faq-toggle {
  color: #e6c200;
  transform: rotate(180deg);
}

.page-resources-latest-trends__faq-answer p {
    color: #cccccc;
}

/* Call to Action */
.page-resources-latest-trends__call-to-action {
  background-color: #1A202C;
  padding: 80px 0;
}

.page-resources-latest-trends__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-latest-trends__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-resources-latest-trends__btn-primary {
  background: #FFD700;
  color: #1A202C;
  border: none;
}

.page-resources-latest-trends__btn-primary:hover {
  background: #e6c200;
}

.page-resources-latest-trends__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-latest-trends__btn-secondary:hover {
  background: #FFD700;
  color: #1A202C;
}

/* General image responsiveness */
.page-resources-latest-trends img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .page-resources-latest-trends__main-title {
    font-size: 44px;
  }

  .page-resources-latest-trends__subtitle {
    font-size: 20px;
  }

  .page-resources-latest-trends__section-title {
    font-size: 30px;
  }

  .page-resources-latest-trends__sub-title {
    font-size: 22px;
  }

  .page-resources-latest-trends__trend-item,
  .page-resources-latest-trends__tech-item {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources-latest-trends__trend-item--reverse {
    flex-direction: column;
  }

  .page-resources-latest-trends__trend-image,
  .page-resources-latest-trends__trend-content,
  .page-resources-latest-trends__tech-image,
  .page-resources-latest-trends__tech-content {
    max-width: 100%;
  }
  
  .page-resources-latest-trends__promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-resources-latest-trends {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-latest-trends__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-resources-latest-trends__section {
    padding: 40px 0;
  }

  .page-resources-latest-trends__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-resources-latest-trends__subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-resources-latest-trends__cta-button {
    padding: 12px 20px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-trends__hero-content {
    padding: 20px;
  }

  .page-resources-latest-trends__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-resources-latest-trends__sub-title {
    font-size: 20px;
  }

  .page-resources-latest-trends p {
    font-size: 16px;
  }

  .page-resources-latest-trends__trends .page-resources-latest-trends__container,
  .page-resources-latest-trends__tech-experience .page-resources-latest-trends__container,
  .page-resources-latest-trends__promotions .page-resources-latest-trends__container,
  .page-resources-latest-trends__faq-section .page-resources-latest-trends__container {
    padding: 20px 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-resources-latest-trends__trend-item,
  .page-resources-latest-trends__tech-item {
    gap: 20px;
    margin-bottom: 40px;
  }

  .page-resources-latest-trends__trend-image,
  .page-resources-latest-trends__tech-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-resources-latest-trends__promo-card {
    padding: 20px;
  }

  .page-resources-latest-trends__promo-image {
    height: 180px;
  }

  .page-resources-latest-trends__promo-title {
    font-size: 20px;
  }

  .page-resources-latest-trends__promo-button {
    padding: 8px 15px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-latest-trends__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-latest-trends__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-latest-trends__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-latest-trends__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-latest-trends__faq-item.active .page-resources-latest-trends__faq-answer {
    padding: 15px !important;
  }

  .page-resources-latest-trends__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  
  .page-resources-latest-trends__cta-button.page-resources-latest-trends__btn-primary,
  .page-resources-latest-trends__cta-button.page-resources-latest-trends__btn-secondary {
      width: 100% !important;
      max-width: 100% !important;
  }

  .page-resources-latest-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}