/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  line-height: 1.6;
}

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

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles top padding, use small decorative top padding */
  background-color: #0D0E12;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

.page-news__hero-description {
  font-size: 1.1em;
  color: #FFF3E6;
  margin-bottom: 30px;
}

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

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

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-news__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary */
  border: 2px solid #FFA53A; /* Auxiliary */
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.2);
}

.page-news__btn-secondary:hover {
  transform: translateY(-3px);
  background: #FFA53A;
  color: #17191F;
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.4);
}

.page-news__section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.4);
}

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

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

.page-news__news-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #FFA53A; /* Auxiliary */
  text-decoration: none;
}

.page-news__card-title a:hover {
  color: #FFB04D; /* Glow */
  text-decoration: underline;
}

.page-news__card-meta {
  font-size: 0.9em;
  color: #A84F0C; /* Border */
  margin-bottom: 15px;
}

.page-news__card-text {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #FFA53A; /* Auxiliary */
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #FFA53A;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFB04D; /* Glow */
  border-color: #FFB04D;
}

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

.page-news__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__guide-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-news__guide-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  margin-bottom: 15px;
}

.page-news__guide-text {
  font-size: 1em;
  color: #FFF3E6;
}

.page-news__safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: start;
}

.page-news__safety-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-news__safety-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-news__safety-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  margin-bottom: 15px;
}

.page-news__safety-text {
  font-size: 1em;
  color: #FFF3E6;
}

.page-news__industry-content {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.page-news__industry-text-block {
  flex: 1;
}

.page-news__industry-subtitle {
  font-size: 1.8em;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  margin-bottom: 15px;
}

.page-news__industry-paragraph {
  font-size: 1em;
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-news__industry-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
  min-width: 200px; /* Ensure image is not too small */
}

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

.page-news__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary */
  cursor: pointer;
  background-color: #17191F;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  list-style: none;
}

.page-news__faq-item[open] > .page-news__faq-question {
  border-bottom-color: #A84F0C;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: #FFB04D; /* Glow */
  margin-left: 15px;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  content: '−';
}

.page-news__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1em;
  color: #FFF3E6;
  line-height: 1.6;
}

.page-news__cta-section {
  background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%); /* Deep Orange to Main Color */
  padding: 80px 0;
  text-align: center;
  box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-news__cta-description {
  font-size: 1.2em;
  color: #FFF3E6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-image-wrapper {
    max-height: 500px;
  }
  .page-news__industry-content {
    flex-direction: column;
  }
  .page-news__industry-image {
    max-width: 100%;
    order: -1; /* Image appears above text on smaller screens */
  }
}

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

  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-news__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 30px;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-news__hero-description {
    font-size: 1em;
  }

  .page-news__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__section-description {
    font-size: 0.95em;
  }

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

  .page-news__card-image,
  .page-news__safety-image,
  .page-news__industry-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    object-fit: cover;
  }

  .page-news__news-card, .page-news__guide-item, .page-news__safety-item {
    width: 100%;
    box-sizing: border-box;
  }

  .page-news__industry-content {
    gap: 20px;
  }

  .page-news__industry-subtitle {
    font-size: 1.5em;
  }

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-news__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  .page-news__cta-title {
    font-size: 2em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }

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

  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__guide-item,
  .page-news__safety-item,
  .page-news__faq-item,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-news__hero-section { /* Override general padding for hero */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}