/* style/news.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --bg-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-color);
  overflow: hidden;
}

.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; /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: var(--text-main-color);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main-color);
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-news__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

.page-news__btn-primary,
.page-news__btn-secondary,
.page-news__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

.page-news__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.2);
}

.page-news__latest-articles-section,
.page-news__featured-news-section,
.page-news__faq-section,
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.page-news__latest-articles-section {
  background-color: var(--bg-color);
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-news__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-main-color);
  opacity: 0.8;
}

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

.page-news__article-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-news__article-title a {
  color: var(--text-main-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--secondary-color);
}

.page-news__article-meta {
  font-size: 0.9em;
  color: var(--text-main-color);
  opacity: 0.7;
  margin-bottom: 15px;
}

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

.page-news__read-more-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  text-align: center;
  padding: 10px 20px;
  border-radius: 6px;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background-color: var(--deep-orange);
}

.page-news__view-all-cta {
  text-align: center;
  margin-top: 60px;
}

.page-news__featured-news-section {
  background-color: var(--bg-color);
  padding: 80px 0;
}

.page-news__featured-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-news__featured-image-wrapper {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-news__featured-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-news__featured-text {
  flex: 1;
  color: var(--text-main-color);
}

.page-news__featured-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-news__faq-section {
  background-color: var(--bg-color);
}

.page-news__faq-list {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-news__faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: var(--text-main-color);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item[open] .page-news__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid var(--primary-color);
}

.page-news__faq-qtext {
  flex-grow: 1;
}

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

.page-news__faq-item details > summary {
  list-style: none;
}

.page-news__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-news__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main-color);
  opacity: 0.8;
}

.page-news__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

.page-news__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bg-color);
}

.page-news__cta-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-news__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-main-color);
  opacity: 0.9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__featured-content {
    flex-direction: column;
  }
  .page-news__featured-image-wrapper,
  .page-news__featured-text {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-news__description {
    font-size: 1em;
  }

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

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news__read-more-btn,
  .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,
  .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;
  }

  .page-news__latest-articles-section,
  .page-news__featured-news-section,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

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

  .page-news__section-subtitle {
    font-size: 1em;
    margin-bottom: 40px;
  }

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

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

  .page-news__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-news__cta-title {
    font-size: 1.8em;
  }

  .page-news__cta-description {
    font-size: 1em;
  }
  
  /* All images responsive */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers responsive */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__featured-image-wrapper,
  .page-news__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-news__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 10vw, 2em);
  }
  .page-news__cta-title {
    font-size: 1.5em;
  }
  .page-news__container {
    padding: 0 10px;
  }
  .page-news__article-content {
    padding: 15px;
  }
  .page-news__faq-question {
    font-size: 1em;
  }
  .page-news__faq-answer {
    font-size: 0.9em;
  }
}