/* style/news.css */

/* Base styles for the news page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff; /* Assuming body background is light */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff; /* White text for dark overlay on hero image */
}

.page-news__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  /* Using clamp for responsive font size without fixed values */
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}

.page-news__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-news__cta-button {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

/* General Content Area */
.page-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* News Grid */
.page-news__news-grid, .page-news__featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__news-card, .page-news__featured-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover, .page-news__featured-card:hover {
  transform: translateY(-5px);
}

.page-news__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-news__featured-card .page-news__card-image {
  height: 300px;
}

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 10px;
}

.page-news__card-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__card-title a:hover {
  color: #26A9E0;
}

.page-news__card-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

.page-news__view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-news__view-all-button {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Industry Updates Section */
.page-news__industry-updates-section p {
  text-align: justify;
  font-size: 1.1rem;
  color: #333333;
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item summary {
  list-style: none;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #f0f0f0;
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

/* Call to Action Bottom Section */
.page-news__cta-bottom-section {
  background-color: #26A9E0;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-news__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-news__cta-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-news__cta-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-news__section-title, .page-news__cta-title {
    font-size: 2rem;
  }
}

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

  .page-news__hero-section {
    padding: 10px 15px 40px;
  }

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

  .page-news__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__content-area {
    padding: 40px 15px;
  }

  .page-news__section-title, .page-news__cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-news__section-description, .page-news__cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__news-grid, .page-news__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card-image {
    height: 180px;
  }

  .page-news__featured-card .page-news__card-image {
    height: 250px;
  }

  .page-news__card-title {
    font-size: 1.2rem;
  }

  .page-news__faq-question {
    font-size: 1.05rem;
    padding: 15px;
  }

  .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  .page-news__cta-bottom-section {
    padding: 60px 15px;
  }

  /* Image and Container Responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__hero-section,
  .page-news__content-area,
  .page-news__latest-news-section,
  .page-news__featured-articles-section,
  .page-news__industry-updates-section,
  .page-news__faq-section,
  .page-news__cta-bottom-section,
  .page-news__news-grid,
  .page-news__featured-grid,
  .page-news__news-card,
  .page-news__featured-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding adjustments for sections that already have content padding */
  .page-news__content-area, .page-news__cta-bottom-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-news__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-news__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__view-all-wrapper {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-news__main-title {
    font-size: clamp(1.5rem, 8vw, 2.2rem);
  }
  .page-news__section-title, .page-news__cta-title {
    font-size: 1.6rem;
  }
  .page-news__card-title {
    font-size: 1.1rem;
  }
}