/* style/news.css */

/* Custom Colors */
:root {
  --page-news-bg-color: #08160F;
  --page-news-card-bg-color: #11271B;
  --page-news-text-main-color: #F2FFF6;
  --page-news-text-secondary-color: #A7D9B8;
  --page-news-border-color: #2E7A4E;
  --page-news-glow-color: #57E38D;
  --page-news-gold-color: #F2C14E;
  --page-news-divider-color: #1E3A2A;
  --page-news-deep-green-color: #0A4B2C;
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-news {
  background-color: var(--page-news-bg-color); /* Body background is handled by shared.css var(--background-color) */
  color: var(--page-news-text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__dark-bg {
  background-color: var(--page-news-bg-color);
  color: var(--page-news-text-main-color);
}

.page-news__card {
  background-color: var(--page-news-card-bg-color);
  color: var(--page-news-text-main-color);
  border: 1px solid var(--page-news-border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--page-news-text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-news__hero-content-wrapper {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-news__hero-title {
  font-size: 3em;
  font-weight: bold;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--page-news-text-secondary-color);
  margin-bottom: 30px;
}

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

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

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

.page-news__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: var(--page-news-glow-color);
  border: 2px solid var(--page-news-glow-color);
}

.page-news__btn-secondary:hover {
  background-color: var(--page-news-glow-color);
  color: var(--page-news-bg-color);
}

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

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

.page-news__article-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
  display: block;
}

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

.page-news__article-title {
  font-size: 1.4em;
  color: var(--page-news-gold-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-meta {
  font-size: 0.9em;
  color: var(--page-news-text-secondary-color);
  margin-bottom: 10px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: var(--page-news-text-main-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-news__category-card {
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
  display: block;
}

.page-news__category-title {
  font-size: 1.5em;
  color: var(--page-news-gold-color);
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-news__category-description {
  font-size: 0.95em;
  color: var(--page-news-text-secondary-color);
}

/* Insights Section */
.page-news__insights {
  padding: 80px 0;
}

.page-news__insights-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__insights-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.page-news__insights-text {
  width: 50%;
}

.page-news__insights-subtitle {
  font-size: 2em;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__insights-paragraph {
  font-size: 1.1em;
  color: var(--page-news-text-main-color);
  margin-bottom: 20px;
}

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

.page-news__faq-item {
  margin-bottom: 20px;
  padding: 20px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-news-gold-color);
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--page-news-divider-color);
}

.page-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-news__faq-question::marker {
  display: none;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  color: var(--page-news-glow-color);
  margin-left: 15px;
}

.page-news__faq-answer {
  font-size: 1em;
  color: var(--page-news-text-secondary-color);
  padding-top: 15px;
  line-height: 1.5;
}

/* CTA Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-title {
  font-size: 2.5em;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__cta-description {
  font-size: 1.2em;
  color: var(--page-news-text-secondary-color);
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.5em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__insights-content {
    flex-direction: column;
  }
  .page-news__insights-image,
  .page-news__insights-text {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-news__hero-title {
    font-size: 2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-cta-buttons,
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__article-grid,
  .page-news__category-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image,
  .page-news__category-image {
    height: 180px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__category-title {
    font-size: 1.3em;
  }
  .page-news__insights-subtitle {
    font-size: 1.5em;
  }
  .page-news__insights-paragraph {
    font-size: 1em;
  }
  .page-news__faq-question {
    font-size: 1.1em;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  /* Mobile image responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__hero-content-wrapper,
  .page-news__insights-content,
  .page-news__insights-image,
  .page-news__insights-text,
  .page-news__view-all-button-wrapper,
  .page-news__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}