/* style/news.css */

/* Base Styles & Typography */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #000000; /* Ensure body background is dark */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #1A1A1A; /* Dark background for hero */
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Overlay for readability */
  z-index: 1;
}

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

.page-news__hero-section .page-news__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  max-width: 900px;
  margin-bottom: 30px;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #1A1A1A; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  margin-left: 20px;
}

.page-news__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: #1A1A1A; /* Dark background */
  color: #f0f0f0;
}

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

.page-news__article-card {
  background-color: #2a2a2a; /* Slightly lighter dark for card */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #f0f0f0;
}

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

.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: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: bold;
}

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

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

.page-news__article-meta {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: #cccccc;
  margin-bottom: 20px;
}

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

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

.page-news__pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2a2a2a;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-news__pagination-link:hover,
.page-news__pagination-link--active {
  background-color: #FFD700;
  color: #1A1A1A;
}

/* Categories Section */
.page-news__categories {
  padding: 80px 0;
  background-color: #000000; /* Primary dark background */
  color: #f0f0f0;
}

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

.page-news__category-card {
  display: block;
  background-color: #1A1A1A;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__category-title {
  font-size: 1.3em;
  color: #FFD700; /* Gold title */
  padding: 15px;
  font-weight: bold;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #f0f0f0;
}

.page-news__cta-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #2a2a2a;
  border-radius: 8px;
  padding: 40px;
  gap: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-news__cta-content {
  flex: 1;
}

.page-news__cta-title {
  font-size: 2em;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-news__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #000000; /* Primary dark background */
  color: #f0f0f0;
}

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

.page-news__faq-item {
  background-color: #1A1A1A;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #3a3a3a;
}

.page-news__faq-item-title {
  font-size: 1.2em;
  color: #FFD700; /* Gold for FAQ question */
  margin: 0;
  font-weight: bold;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  color: #FFD700;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate for '-' sign if using '+' */
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__hero-description {
    font-size: 1.1em;
  }
  .page-news__cta-box {
    flex-direction: column;
    text-align: center;
  }
  .page-news__cta-image {
    width: 100%;
    height: auto;
    max-width: 500px;
  }
  .page-news__cta-buttons {
    justify-content: center;
  }
  .page-news__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__section-description {
    font-size: 0.95em;
  }
  .page-news__latest-articles,
  .page-news__categories,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 60px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__article-image,
  .page-news__category-image,
  .page-news__cta-image {
    width: 100% !important;
    height: auto !important;
  }
  .page-news__article-card,
  .page-news__category-card,
  .page-news__cta-box,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Button responsiveness */
  .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__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-news__btn-secondary {
    margin-left: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__faq-item-title {
    font-size: 1.1em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
}