/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: var(--bg-dark);
}

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

.page-news__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffc107;
}

.page-news__description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #007bff, #0056b3);
  overflow: hidden;
  min-height: 600px;
}

.page-news__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

.page-news__hero-title {
  font-size: 3.5rem;
  color: #ffc107;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__btn-primary {
  background-color: #ffc107;
  color: #000000;
  border: 2px solid #ffc107;
}

.page-news__btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
  margin-left: 15px;
}

.page-news__btn-secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

.page-news__featured-articles {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-news__article-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

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

.page-news__card-content {
  padding: 20px;
  flex-grow: 1;
}

.page-news__article-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.page-news__article-snippet {
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-news__article-date {
  font-size: 0.85rem;
  color: #999999;
}

.page-news__categories {
  padding: 60px 0;
  background-color: #007bff;
  color: #ffffff;
}

.page-news__categories .page-news__section-title {
  color: #ffc107;
}

.page-news__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 25px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1rem;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__category-button:hover {
  background-color: #ffc107;
  color: #000000;
  transform: translateY(-3px);
}

.page-news__recent-articles-listing {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-news__list-item {
  display: flex;
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-news__list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.page-news__list-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-news__list-title a {
  color: #ffc107;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__list-title a:hover {
  color: #e0a800;
}

.page-news__list-snippet {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-news__list-date {
  font-size: 0.8rem;
  color: #999999;
}

.page-news__about-us {
  padding: 60px 0;
  background-color: #007bff;
  color: #ffffff;
}

.page-news__about-us .page-news__section-title {
  color: #ffc107;
}

.page-news__about-us .page-news__description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__about-us .page-news__btn-secondary {
  display: block;
  margin: 30px auto 0 auto;
  max-width: 250px;
}

.page-news__cta-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: #007bff;
  color: #ffffff;
}

.page-news__faq-section .page-news__section-title {
  color: #ffc107;
}

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

.page-news__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-news__faq-answer p {
  font-size: 1rem;
  color: #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3rem;
  }

  .page-news__hero-description {
    font-size: 1.1rem;
  }

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

  .page-news__article-title {
    font-size: 1.2rem;
  }

  .page-news__list-item {
    flex-direction: column;
  }

  .page-news__list-image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding: 60px 15px;
    min-height: 450px;
  }

  .page-news__hero-title {
    font-size: 2.2rem;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    display: block;
    margin: 10px auto;
    width: 100%;
    max-width: 300px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__btn-secondary {
    margin-left: auto;
  }

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

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

  .page-news__list-item {
    flex-direction: column;
  }

  .page-news__list-image {
    width: 100%;
    height: 200px;
  }

  .page-news__list-content {
    padding: 15px;
  }

  .page-news__category-list {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__category-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-news__cta-buttons .page-news__btn-primary,
  .page-news__cta-buttons .page-news__btn-secondary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-news__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__article-card,
  .page-news__list-item,
  .page-news__cta-buttons,
  .page-news__category-list,
  .page-news__faq-list,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

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

  .page-news__hero-description {
    font-size: 0.9rem;
  }

  .page-news__section-title {
    font-size: 1.5rem;
  }
}