/* style/news.css */

/* Base styles for the page-news scope */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color */
  background-color: var(--background-color); /* Default background color from shared */
}

/* Custom colors based on provided palette */
.page-news__highlight {
  color: var(--gold-color);
}

.page-news__section-title {
  color: var(--text-main-color);
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__section-title--light {
  color: #ffffff;
}

.page-news__text-block {
  color: var(--text-secondary-color);
  font-size: 17px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__text-block--light {
  color: #ffffff;
}

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

.page-news__section {
  padding: 60px 0;
}

.page-news__dark-section {
  background-color: var(--deep-green-color);
  color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px;
  justify-content: center;
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  color: #ffffff;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.1;
}

.page-news__hero-description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #f2fff6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  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(--button-gradient);
  color: #ffffff;
  border: none;
  margin: 10px;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-news__btn-secondary:hover {
  background: var(--deep-green-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* News Grid */
.page-news__news-grid,
.page-news__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-news__news-card,
.page-news__category-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-news__card-title a {
  color: var(--text-main-color);
  text-decoration: none;
}

.page-news__card-title a:hover {
  color: var(--glow-color);
}

.page-news__card-meta {
  font-size: 14px;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-news__card-description {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* Benefits Section */
.page-news__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-news__benefit-item {
  text-align: center;
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-news__benefit-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  padding: 15px;
}

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

.page-news__benefit-description {
  font-size: 16px;
  color: var(--text-secondary-color);
}

.page-news__dark-section .page-news__benefit-title {
  color: #ffffff;
}

.page-news__dark-section .page-news__benefit-description {
  color: var(--text-secondary-color);
}

/* Access Methods */
.page-news__access-methods {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-news__access-methods li {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-news__access-methods li::before {
  content: '•';
  color: var(--glow-color);
  position: absolute;
  left: 0;
  font-size: 22px;
  line-height: 1;
}

.page-news__method-title {
  font-weight: 700;
  color: var(--text-main-color);
}

.page-news__access-methods li a {
  color: var(--glow-color);
  text-decoration: none;
}

.page-news__access-methods li a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-news__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-news__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-news__dark-section .page-news__faq-item {
  background-color: var(--card-bg-color);
  border-color: var(--divider-color);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main-color);
  user-select: none;
  list-style: none; /* For details/summary */
}

details > summary::-webkit-details-marker {
  display: none;
}

.page-news__dark-section .page-news__faq-question {
  color: var(--text-main-color);
}

.page-news__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-secondary-color);
}

.page-news__faq-answer p {
  margin: 0;
  text-align: left;
}

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

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

/* CTA Section */
.page-news__cta-section {
  text-align: center;
  background-color: var(--deep-green-color);
  padding: 80px 0;
}

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

.page-news__cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-section {
    padding: 40px 15px;
    min-height: 400px;
  }
  .page-news__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .page-news__hero-description {
    font-size: 17px;
  }
  .page-news__section {
    padding: 40px 0;
  }
  .page-news__news-grid,
  .page-news__category-grid {
    gap: 20px;
  }
  .page-news__benefits-list {
    gap: 20px;
  }
  .page-news__card-title {
    font-size: 20px;
  }
  .page-news__benefit-title {
    font-size: 18px;
  }
  .page-news__faq-question {
    font-size: 17px;
    padding: 18px 20px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section {
    padding: 20px 15px;
    min-height: 350px;
  }
  .page-news__hero-image {
    filter: brightness(0.6);
  }
  .page-news__hero-content {
    padding: 15px;
    background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for mobile */
  }
  .page-news__main-title {
    font-size: 32px; /* Fixed for better mobile readability */
    margin-bottom: 10px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 !important;
    padding: 12px 20px !important;
    font-size: 16px;
  }
  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px;
  }
  .page-news__section {
    padding: 30px 0;
  }
  .page-news__container,
  .page-news__news-card,
  .page-news__category-card,
  .page-news__benefit-item,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__news-grid,
  .page-news__category-grid,
  .page-news__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__card-image {
    height: 180px;
  }
  .page-news__card-content {
    padding: 20px;
  }
  .page-news__card-title {
    font-size: 18px;
  }
  .page-news__card-description {
    font-size: 15px;
  }
  .page-news__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    font-size: 15px;
    padding: 0 20px 15px;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video-section {
    padding-top: 10px !important;
  }
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}