/* style/news.css */

:root {
  --primary-color: #FF4500;
  --secondary-color: #00CED1;
  --dark-bg-1: #0d0d0d;
  --text-light: #ffffff;
  --text-dark: #333333;
  --border-light: #e0e0e0;
}

.page-news {
  padding-top: 120px; /* Account for fixed header on desktop */
  color: var(--text-light); /* Default text color for the page, assuming dark body bg */
  background-color: var(--dark-bg-1);
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px !important; /* Account for fixed header on mobile */
  }
}

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

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }
}

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light); /* Default for dark sections */
}

.page-news__section-title--light {
  color: var(--text-light);
}

.page-news__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #cccccc;
  line-height: 1.6;
}

.page-news__section-subtitle--light {
  color: #cccccc;
}

.page-news__highlight-text {
  color: var(--primary-color);
}

/* Hero Banner Section */
.page-news__hero-banner {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.page-news__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-news__cta-button:hover {
  background: #E63900;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .page-news__hero-banner {
    padding: 40px 0;
  }
  .page-news__hero-title {
    font-size: 32px;
  }
  .page-news__hero-description {
    font-size: 16px;
  }
  .page-news__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-news__hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
  }
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-news__latest-articles .page-news__section-title {
  color: var(--text-light);
}

.page-news__latest-articles .page-news__section-subtitle {
  color: #cccccc;
}

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

.page-news__article-card {
  background: #222222; /* Darker background for cards on dark page */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

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

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-news__article-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__excerpt-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__excerpt-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-news__article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #999999;
  border-top: 1px solid #333333;
  padding-top: 15px;
}

.page-news__read-more-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

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

.page-news__pagination-link {
  display: block;
  padding: 10px 18px;
  border: 1px solid var(--primary-color);
  border-radius: 6px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-news__pagination-link--active {
  background: var(--primary-color);
  color: #ffffff;
  cursor: default;
}

@media (max-width: 768px) {
  .page-news__latest-articles {
    padding: 40px 0;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-image {
    height: 180px;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 18px;
  }
  .page-news__article-excerpt {
    font-size: 14px;
  }
  .page-news__pagination {
    margin-top: 40px;
  }
}

/* Categories Section */
.page-news__categories {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly different dark background */
  color: var(--text-light);
}

.page-news__categories .page-news__section-title {
  color: var(--text-light);
}

.page-news__categories .page-news__section-subtitle {
  color: #cccccc;
}

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

.page-news__category-card {
  background: #2a2a2a; /* Darker background for cards */
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.page-news__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: #3a3a3a;
}

.page-news__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-light);
  margin: 0;
}

@media (max-width: 768px) {
  .page-news__categories {
    padding: 40px 0;
  }
  .page-news__category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .page-news__category-card {
    padding: 20px 15px;
    min-height: 150px;
  }
  .page-news__category-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
  .page-news__category-title {
    font-size: 16px;
  }
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: var(--dark-bg-1);
  color: var(--text-light);
}

.page-news__faq-section .page-news__section-title {
  color: var(--text-light);
}

.page-news__faq-section .page-news__section-subtitle {
  color: #cccccc;
}

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

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  background: #2a2a2a;
}

.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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  font-size: 15px;
  line-height: 1.7;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #333333;
  border-radius: 0 0 10px 10px;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-news__faq-item.active .page-news__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-news__faq-question:hover {
  background: #333333;
  border-color: var(--primary-color);
}

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

.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: var(--text-light);
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  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: var(--secondary-color);
  transform: rotate(45deg);
}

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

/* CTA Banner Section */
.page-news__cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-color), #cc3700);
  color: var(--text-light);
  text-align: center;
}

.page-news__cta-container {
  max-width: 900px;
}

.page-news__cta-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-news__cta-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-news__cta-link:hover {
  color: #fff;
  text-decoration: underline;
}

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

.page-news__btn-primary {
  background: var(--secondary-color);
  color: #ffffff;
  border: 2px solid var(--secondary-color);
}

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

.page-news__btn-secondary {
  background: none;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

@media (max-width: 768px) {
  .page-news__cta-banner {
    padding: 50px 0;
  }
  .page-news__cta-title {
    font-size: 28px;
  }
  .page-news__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Responsive image fix */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section, .page-news__card, .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-banner {
    padding-top: 160px !important; /* Mobile: adjust for fixed header */
  }
}