/* Base styles for the news page */
.page-news {
  background: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFB04D;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
}

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

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: 48px;
  font-weight: 800;
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 176, 77, 0.7);
}

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

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  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%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 132, 26, 0.4);
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 132, 26, 0.6);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
  box-shadow: 0 4px 10px rgba(168, 79, 12, 0.3);
}

.page-news__btn-secondary:hover {
  background: #2a2d36;
  color: #FFA53A;
  border-color: #FFA53A;
  box-shadow: 0 6px 15px rgba(168, 79, 12, 0.5);
  transform: translateY(-2px);
}

/* Articles Section */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-news__news-card {
  background: #17191F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-news__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(255, 132, 26, 0.4);
}

.page-news__card-link {
  text-decoration: none;
  display: block;
  height: 100%;
  color: inherit;
}

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

.page-news__card-content {
  padding: 25px;
}

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__card-title:hover {
  color: #FFA53A;
}

.page-news__card-date {
  font-size: 14px;
  color: #FFA53A;
  margin-bottom: 15px;
  display: block;
}

.page-news__card-excerpt {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more {
  color: #FF8C1A;
  font-weight: 600;
  font-size: 16px;
  display: inline-block;
  position: relative;
}

.page-news__read-more::after {
  content: '→';
  margin-left: 5px;
  transition: margin-left 0.3s ease;
}

.page-news__news-card:hover .page-news__read-more::after {
  margin-left: 10px;
}

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

.page-news__view-all-button {
  padding: 15px 40px;
}

/* Categories Section */
.page-news__categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-news__category-item {
  background: #17191F;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #FFF3E6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid #A84F0C;
}

.page-news__category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 132, 26, 0.3);
  border-color: #FFA53A;
}

.page-news__category-icon {
  font-size: 50px;
  margin-bottom: 15px;
  display: block;
  color: #FFB04D;
}

.page-news__category-name {
  font-size: 24px;
  font-weight: 700;
  color: #FFB04D;
  margin-bottom: 10px;
}

.page-news__category-description {
  font-size: 16px;
  color: #FFF3E6;
  line-height: 1.5;
}

/* Trust Section */
.page-news__trust-content {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
  flex-direction: row;
}

.page-news__trust-text {
  flex: 1;
  text-align: left;
}

.page-news__trust-text p {
  font-size: 18px;
  color: #FFF3E6;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-news__trust-image-wrapper {
  flex: 0 0 500px; /* Fixed width for image on desktop */
  max-width: 50%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #A84F0C;
}

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

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
  box-shadow: 0 4px 15px 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: 20px 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: #2a2d36;
}

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

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

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: #17191F;
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 16px;
  line-height: 1.6;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  text-align: center;
  background: linear-gradient(135deg, #0D0E12 0%, #17191F 100%);
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

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

.page-news__cta-bottom .page-news__section-title {
  color: #FFB04D;
  margin-bottom: 20px;
}

.page-news__cta-bottom .page-news__description {
  margin-bottom: 40px;
}

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

.page-news__hero-buttons,
.page-news__view-all-wrapper,
.page-news__cta-bottom .page-news__btn-primary {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-news__articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-news__trust-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-news__trust-image-wrapper {
    max-width: 100%;
    flex: none;
  }

  .page-news__hero-image-wrapper {
    max-height: 450px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 10px; /* Ensure small top padding */
  }

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

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

  .page-news__main-title {
    font-size: 32px;
  }

  .page-news__description,
  .page-news__section-intro,
  .page-news__trust-text p,
  .page-news__card-excerpt,
  .page-news__category-description,
  details.page-news__faq-item .page-news__faq-answer {
    font-size: 15px;
  }

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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: 12px 20px;
    font-size: 16px;
  }

  .page-news__section-spacing {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

  .page-news__categories-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-news__category-icon {
    font-size: 40px;
  }

  .page-news__category-name {
    font-size: 20px;
  }

  .page-news__trust-content {
    gap: 25px;
  }

  .page-news__trust-image-wrapper {
    border-width: 1px;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
  }

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

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

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

  .page-news__cta-content {
    padding: 0 15px;
  }

  .page-news__cta-bottom .page-news__btn-primary {
    max-width: 100%;
    width: 100%;
  }
}

/* Ensure all content containers are responsive */
.page-news__section, .page-news__card, .page-news__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left: 15px; */ /* Handled by .page-news__container already */
    /* padding-right: 15px; */ /* Handled by .page-news__container already */
  }
}

/* No filter on images */
.page-news img {
  filter: none;
}