/* style/blog-latest-industry-trends.css */

/* Base styles for the page content, ensuring contrast with body background */
.page-blog-latest-industry-trends {
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-blog-latest-industry-trends__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  background-color: #2F6BFF; /* Main color as dark background */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
}

.page-blog-latest-industry-trends__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog-latest-industry-trends__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog-latest-industry-trends__hero-content {
  max-width: 900px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.page-blog-latest-industry-trends__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog-latest-industry-trends__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Content Area */
.page-blog-latest-industry-trends__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

.page-blog-latest-industry-trends__section-title {
  font-size: 2.2em;
  color: #2F6BFF;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
}

.page-blog-latest-industry-trends__paragraph {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog-latest-industry-trends__image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog-latest-industry-trends__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog-latest-industry-trends__cta-section {
  background: #FFFFFF; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #D6E2FF; /* Border */
}

.page-blog-latest-industry-trends__cta-title {
  font-size: 2em;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-blog-latest-industry-trends__cta-description {
  font-size: 1.1em;
  color: #1F2D3D;
  margin-bottom: 30px;
}

/* Buttons */
.page-blog-latest-industry-trends__btn-primary,
.page-blog-latest-industry-trends__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-latest-industry-trends__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-blog-latest-industry-trends__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog-latest-industry-trends__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog-latest-industry-trends__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog-latest-industry-trends__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Related Articles Section */
.page-blog-latest-industry-trends__related-articles {
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 20px;
  background: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

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

.page-blog-latest-industry-trends__article-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-blog-latest-industry-trends__article-card:hover {
  transform: translateY(-5px);
}

.page-blog-latest-industry-trends__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog-latest-industry-trends__article-card h3,
.page-blog-latest-industry-trends__article-card p {
  padding: 0 20px;
}

.page-blog-latest-industry-trends__article-title {
  font-size: 1.4em;
  margin-top: 20px;
  margin-bottom: 10px;
  min-height: 70px; /* Ensure consistent height for titles */
}

.page-blog-latest-industry-trends__article-title a {
  color: #1F2D3D; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog-latest-industry-trends__article-title a:hover {
  color: #2F6BFF;
}

.page-blog-latest-industry-trends__article-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog-latest-industry-trends__article-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  min-height: 80px; /* Ensure consistent height for excerpts */
}

.page-blog-latest-industry-trends__read-more {
  display: inline-block;
  padding: 10px 20px;
  background: #2F6BFF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  margin: 0 20px 20px;
  transition: background 0.3s ease;
}

.page-blog-latest-industry-trends__read-more:hover {
  background: #4A8BFF;
}

.page-blog-latest-industry-trends__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Highlight text for keywords */
.page-blog-latest-industry-trends .highlight {
  color: #2F6BFF;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-latest-industry-trends__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-blog-latest-industry-trends__section-title {
    font-size: 1.8em;
  }
}

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

  .page-blog-latest-industry-trends__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog-latest-industry-trends__hero-content {
    margin-top: 30px;
  }

  .page-blog-latest-industry-trends__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-blog-latest-industry-trends__description {
    font-size: 1em;
  }

  .page-blog-latest-industry-trends__content-area,
  .page-blog-latest-industry-trends__related-articles {
    padding: 30px 15px;
  }

  .page-blog-latest-industry-trends__section-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-blog-latest-industry-trends__paragraph {
    font-size: 0.95em;
  }

  .page-blog-latest-industry-trends__cta-section {
    padding: 30px 15px;
  }

  .page-blog-latest-industry-trends__cta-title {
    font-size: 1.6em;
  }

  .page-blog-latest-industry-trends__cta-description {
    font-size: 1em;
  }

  .page-blog-latest-industry-trends__btn-primary,
  .page-blog-latest-industry-trends__btn-secondary,
  .page-blog-latest-industry-trends a[class*="button"],
  .page-blog-latest-industry-trends 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;
    margin: 10px 0 !important; /* Adjust margin for stacked buttons */
  }
  
  .page-blog-latest-industry-trends__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog-latest-industry-trends__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-latest-industry-trends__article-image {
    height: 180px;
  }

  /* Force responsive images */
  .page-blog-latest-industry-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-blog-latest-industry-trends__hero-image-wrapper,
  .page-blog-latest-industry-trends__image-wrapper,
  .page-blog-latest-industry-trends__article-card,
  .page-blog-latest-industry-trends__articles-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-latest-industry-trends__article-title,
  .page-blog-latest-industry-trends__article-excerpt {
    min-height: auto; /* Allow height to adjust on mobile */
  }
}