/* style/news.css */

/* Base Styles & Color Contrast */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is #000 (dark), so use light text */
}

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

.page-news__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-news__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

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

/* Hero Section for News Page */
.page-news__hero-section {
  padding-top: 60px; /* Assuming shared.css handles body padding, this adds extra space */
  padding-bottom: 60px;
  text-align: center;
}

.page-news__hero-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-news__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A202C;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 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: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__article-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 15px 10px 15px;
  color: #1A202C;
  flex-grow: 0;
}

.page-news__article-excerpt {
  font-size: 15px;
  color: #555555;
  margin: 0 15px 15px 15px;
  flex-grow: 1;
}

.page-news__read-more {
  display: block;
  font-weight: bold;
  color: #FFD700;
  padding: 0 15px 15px 15px;
  text-align: right;
  margin-top: auto; /* Push to bottom */
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

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

.page-news__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__category-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-news__category-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD700;
}

.page-news__category-card p {
  font-size: 16px;
  color: #cccccc;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
}

.page-news__cta-container {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 40px;
}

.page-news__cta-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-news__cta-content {
  width: 50%;
  text-align: left;
}

.page-news__cta-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1A202C;
}

.page-news__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-news__cta-button {
  padding: 15px 30px;
  font-size: 18px;
  border-radius: 10px;
}

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

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

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #cccccc;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

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

.page-news__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

  .page-news__hero-description {
    font-size: 16px;
  }

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

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

  .page-news__category-card {
    padding: 25px;
  }

  .page-news__cta-container {
    flex-direction: column;
    padding: 30px;
    text-align: center;
  }

  .page-news__cta-image {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-news__cta-content {
    width: 100%;
  }

  .page-news__cta-title {
    font-size: 30px;
  }

  .page-news__cta-description {
    font-size: 16px;
  }

  .page-news__faq-question h3 {
    font-size: 17px;
  }
}

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

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

  .page-news__hero-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-news__hero-title {
    font-size: 30px;
  }

  .page-news__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-news__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px;
    font-size: 15px;
  }

  .page-news__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-news__latest-articles,
  .page-news__categories-section,
  .page-news__cta-section,
  .page-news__faq-section {
    padding: 50px 0;
  }

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

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

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

  .page-news__article-excerpt {
    font-size: 14px;
    margin: 0 12px 12px 12px;
  }

  .page-news__read-more {
    padding: 0 12px 12px 12px;
  }

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

  .page-news__category-card {
    padding: 20px;
  }

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

  .page-news__category-card p {
    font-size: 15px;
  }

  .page-news__cta-container {
    padding: 20px;
  }

  .page-news__cta-image {
    border-radius: 8px;
  }

  .page-news__cta-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-news__cta-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-news__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
  }

  .page-news__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-news__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-news__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-news__faq-answer {
    padding: 0 15px;
  }
  
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness for all images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* All containers with images */
  .page-news__section,
  .page-news__container,
  .page-news__articles-grid,
  .page-news__article-card,
  .page-news__category-card,
  .page-news__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Button container mobile adaptation */
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}