/* General styles for the News page */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-news__section-title--light {
  color: #FFF1E8;
}

.page-news__section-description {
  font-size: 18px;
  color: #FFF1E8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-news__section-description--light {
  color: #FFF1E8;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  background: linear-gradient(180deg, #7E0D0D 0%, #140C0C 100%); /* Deep Red to Background */
}

.page-news__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42.1875%; /* 1920x810 aspect ratio (810/1920 * 100) */
  overflow: hidden;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.page-news__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 20px;
  color: #FFF1E8;
  margin-bottom: 40px;
}

.page-news__hero-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-news__hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Latest Articles Grid */
.page-news__latest-articles {
  background-color: #140C0C;
}

.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-news__article-card {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E; /* Border */
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__article-link {
  text-decoration: none;
  display: block;
  color: #FFF1E8;
}

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 20px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #F3C54D; /* Gold */
  line-height: 1.3;
}

.page-news__article-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #FFF1E8;
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.page-news__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Featured Articles Section */
.page-news__featured-articles {
  background-color: #C61F1F; /* Main Color */
  color: #FFF1E8;
}

.page-news__dark-section .page-news__section-description {
  color: #FFF1E8;
}

.page-news__featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.page-news__featured-card {
  background-color: #7E0D0D; /* Deep Red */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #6A1E1E;
}

.page-news__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-news__featured-card .page-news__article-title {
  color: #F3C54D;
}

.page-news__featured-card .page-news__article-meta,
.page-news__featured-card .page-news__article-excerpt {
  color: #FFF1E8;
}

/* Industry Insights Section */
.page-news__industry-insights {
  background-color: #140C0C;
}

.page-news__insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-news__insight-item {
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #6A1E1E;
  padding-bottom: 20px;
  text-align: center;
}

.page-news__insight-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-news__insight-title {
  font-size: 20px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-news__insight-text {
  font-size: 16px;
  color: #FFF1E8;
  padding: 0 20px;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #7E0D0D; /* Deep Red */
  text-align: center;
  padding: 80px 0;
}

.page-news__cta-content {
  max-width: 900px;
}

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

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-news__btn-secondary {
  background: #ffffff;
  color: #C61F1F; /* Main Color */
  border: 2px solid #C61F1F;
}

.page-news__btn-primary:hover,
.page-news__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #140C0C;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-news__faq-item summary.page-news__faq-question:hover {
  background: #3A1A1A;
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D; /* Gold */
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFF1E8;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 20px;
  background: #1A0F0F;
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

.page-news__faq-answer a {
  color: #FFB04A;
  text-decoration: underline;
}

.page-news__faq-answer a:hover {
  color: #D86A14;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 32px;
  }

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

  .page-news__main-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .page-news__hero-description {
    font-size: 18px;
  }

  .page-news__articles-grid,
  .page-news__featured-grid,
  .page-news__insights-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-news__article-title {
    font-size: 20px;
  }

  .page-news__insight-title {
    font-size: 18px;
  }

  .page-news__cta-description {
    font-size: 18px;
  }

  .page-news__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-news__section {
    padding: 40px 0;
  }

  .page-news__section-title {
    font-size: 28px;
    padding: 0 15px;
  }

  .page-news__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-news__hero-image {
    object-fit: contain !important; /* Banner 849px contain */
  }

  .page-news__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    padding: 0 10px;
  }

  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto;
  }

  /* Latest Articles Grid */
  .page-news__articles-grid,
  .page-news__featured-grid,
  .page-news__insights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__article-card,
  .page-news__featured-card,
  .page-news__insight-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 auto;
  }

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

  .page-news__article-content {
    padding: 15px;
  }

  .page-news__article-title {
    font-size: 18px;
  }

  .page-news__article-excerpt {
    font-size: 14px;
  }

  .page-news__view-all-button-container {
    margin-top: 30px;
  }

  .page-news__view-all-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 20px;
    font-size: 15px;
  }

  /* Featured Articles Section */
  .page-news__featured-card .page-news__article-image {
    height: 180px;
  }

  /* Industry Insights Section */
  .page-news__insight-image {
    height: 150px;
  }

  .page-news__insight-title {
    font-size: 16px;
  }

  .page-news__insight-text {
    font-size: 14px;
  }

  /* CTA Section */
  .page-news__cta-section {
    padding: 50px 0;
  }

  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Buttons within CTA */
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px;
  }

  .page-news__faq-qtext {
    font-size: 16px;
  }

  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

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

  .page-news p,
  .page-news li {
    font-size: 15px;
  }
  
  /* General image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-news__section,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__section-title,
  .page-news__section-description {
    padding-left: 0;
    padding-right: 0;
  }
}