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

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

.page-news__hero-section {
  padding-top: 10px; /* Small top padding for first section */
  padding-bottom: 60px;
  text-align: center;
  background: #140C0C; /* Background */
  position: relative;
  overflow: hidden;
}

.page-news__hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.page-news__main-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFF1E8;
  line-height: 1.2;
}

.page-news__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF1E8;
}

.page-news__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: #2A1212; /* Card BG */
  color: #FFB04A; /* Gold color for text */
  border: 2px solid #6A1E1E; /* Border */
}

.page-news__btn-secondary:hover {
  background: #3A2222;
  color: #F3C54D;
}

.page-news__articles-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-news__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFF1E8;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-news__article-card {
  background: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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.3);
}

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

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

.page-news__article-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #F3C54D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFB04A;
}

.page-news__article-summary {
  font-size: 15px;
  color: #FFF1E8;
  margin-bottom: 15px;
}

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

.page-news__read-more {
  display: inline-block;
  color: #D86A14; /* Deep Red for accent */
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #FFB04A;
}

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

.page-news__faq-section {
  padding: 60px 0;
  background-color: #140C0C; /* Background */
}

.page-news__faq-list {
  margin-top: 40px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background: #2A1212; /* Card BG */
}

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

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: #3A2222;
}

.page-news__faq-qtext {
  flex: 1;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}

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

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #1F0F0F;
  border-radius: 0 0 8px 8px;
}

details.page-news__faq-item .page-news__faq-answer p {
  font-size: 15px;
  color: #FFF1E8;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 38px;
  }

  .page-news__description {
    font-size: 17px;
  }

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

  .page-news__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

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

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

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

/* Mobile specific styles */
@media (max-width: 768px) {
  /* Top section __top-text */
  .page-news__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-news__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* General images and containers */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__container,
  .page-news__articles-section .page-news__container,
  .page-news__faq-section .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-news__section-description {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .page-news__article-card {
    margin-left: 0;
    margin-right: 0;
  }

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

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

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

  .page-news__read-more {
    font-size: 14px;
  }

  /* Buttons */
  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news 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;
  }

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

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

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

  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

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

  details.page-news__faq-item .page-news__faq-answer p {
    font-size: 14px;
  }
}