/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  background-color: #f4f4f4;
}

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

.page-news__highlight {
  color: #8B0000; /* Dark red for highlights */
  font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
  background: linear-gradient(135deg, #FFD700, #8B0000);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.page-news__hero-title .page-news__highlight {
  color: #ffffff; /* White for highlight on dark gradient */
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-link {
  color: #FFD700;
  text-decoration: underline;
}

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

.page-news__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-news__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-news__button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-2px);
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  color: #8B0000;
  text-align: center;
  margin: 60px 0 40px 0;
  font-weight: 700;
  position: relative;
}

.page-news__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  margin: 15px auto 0 auto;
  border-radius: 2px;
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 40px 0;
}

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

.page-news__article-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 72px; /* Ensure consistent height */
}

.page-news__article-title a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-news__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 96px; /* Consistent excerpt height */
}

.page-news__read-more {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Featured Article Section */
.page-news__featured-article-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

.page-news__featured-content {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-news__featured-image {
  width: 50%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-news__featured-text {
  flex-grow: 1;
}

.page-news__featured-title {
  font-size: 2em;
  color: #8B0000;
  margin-bottom: 20px;
}

.page-news__featured-excerpt {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
}

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

/* Categories Section */
.page-news__categories-section {
  padding: 40px 0;
}

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

.page-news__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
}

.page-news__category-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 1.3em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-news__category-title a {
  color: #8B0000;
  text-decoration: none;
}

.page-news__category-title a:hover {
  color: #FFD700;
}

.page-news__category-description {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px;
}

/* Tips & Guides Section */
.page-news__tips-guides-section {
  padding: 60px 0;
  background-color: #fcfcfc;
}

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

.page-news__guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-news__guide-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  min-height: 72px;
}

.page-news__guide-title a {
  color: #8B0000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: #FFD700;
}

.page-news__guide-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 96px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
}

.page-news__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
}

.page-news__faq-question {
  font-size: 1.2em;
  color: #8B0000;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-news__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5em;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-news__faq-question--active::after {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  font-size: 1em;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
  opacity: 0;
}

.page-news__faq-answer--active {
  max-height: 200px; /* Adjust based on content */
  opacity: 1;
  margin-top: 10px;
}

/* CTA Section */
.page-news__cta-section {
  background: linear-gradient(90deg, #8B0000, #FFD700);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
  margin-top: 60px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.page-news__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-news__cta-section .page-news__container {
  position: relative;
  z-index: 1;
}

.page-news__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-news__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-news__button--large {
  padding: 18px 40px;
  font-size: 1.3em;
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-news__button--large:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }

  .page-news__featured-content {
    flex-direction: column;
  }

  .page-news__featured-image {
    width: 100%;
    height: 300px;
  }

  .page-news__article-title, .page-news__guide-title {
    font-size: 1.3em;
  }
  .page-news__article-excerpt, .page-news__guide-excerpt {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .page-news__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-news__button {
    width: 80%;
    margin: 0 auto;
  }

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

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

  .page-news__button--large {
    font-size: 1.1em;
    padding: 15px 30px;
  }

  .page-news__articles-grid, .page-news__categories-grid, .page-news__guides-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image, .page-news__guide-image {
    height: 200px;
  }
  .page-news__article-title, .page-news__guide-title {
    min-height: auto; /* Allow height to adjust on smaller screens */
  }
  .page-news__article-excerpt, .page-news__guide-excerpt {
    -webkit-line-clamp: 3; /* Adjust line clamp for smaller screens */
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-news__button {
    width: 90%;
  }
}