/* style/news.css */

/* Base styles for the page, ensuring light text on dark background */
.page-news {
  color: #F2FFF6; /* Text Main */
  background-color: var(--background-color); /* #08160F from shared */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-news__sub-section-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
}

.page-news__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
  text-align: justify;
}

.page-news__text-block a {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-news__text-block a:hover {
  text-decoration: underline;
}

.page-news__highlight {
  color: #F2C14E; /* Gold */
  font-weight: bold;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height on desktop */
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(0deg, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.6) 100%);
  margin-top: -100px; /* Overlap slightly with image */
  width: 100%;
  max-width: 900px;
  border-radius: 10px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-news__description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Categories Grid */
.page-news__categories {
  padding: 60px 0;
}

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

.page-news__category-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
}

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

.page-news__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-news__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__card-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-news__card-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__card-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__card-text a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

.page-news__card-link {
  display: inline-block;
  color: #F2C14E; /* Gold */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #F2C14E;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__card-link:hover {
  color: #57E38D; /* Glow */
  border-color: #57E38D; /* Glow */
}

/* Article List */
.page-news__article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__article-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 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 25px rgba(0, 0, 0, 0.4);
}

.page-news__article-meta {
  display: flex;
  justify-content: space-between;
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.9em;
  margin-bottom: 15px;
}

.page-news__article-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
}

.page-news__article-title a:hover {
  color: #57E38D; /* Glow */
}

.page-news__article-excerpt {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more {
  display: inline-block;
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #57E38D;
  padding-bottom: 5px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__read-more:hover {
  color: #F2C14E; /* Gold */
  border-color: #F2C14E; /* Gold */
}

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

/* Benefits Section */
.page-news__benefits-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-news__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-news__list-item {
  font-size: 1.1em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-news__list-item::before {
  content: '✔';
  color: #57E38D; /* Glow */
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* CTA Registration Section */
.page-news__cta-registration-section {
  padding: 60px 0;
  text-align: center;
  background-color: #11271B; /* Card BG */
}

.page-news__registration-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-news__registration-steps .page-news__list-item {
  font-size: 1.15em;
  margin-bottom: 20px;
  padding-left: 40px;
  counter-increment: step-counter;
}

.page-news__registration-steps .page-news__list-item::before {
  content: counter(step-counter);
  color: #F2FFF6; /* Text Main */
  background-color: #13994A; /* Darker green from button gradient */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  font-size: 0.9em;
}

.page-news__registration-steps .page-news__list-item a {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: bold;
}

.page-news__registration-steps .page-news__list-item a:hover {
  text-decoration: underline;
}

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

.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border */
}

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  list-style: none; /* Remove default marker */
}

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Conclusion Section */
.page-news__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-news__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-news__category-card {
    min-height: 400px;
  }
}

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

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

  .page-news__hero-image {
    max-height: 400px;
  }

  .page-news__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
    max-width: 100%;
    border-radius: 0;
  }

  .page-news__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-news__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

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

  .page-news__sub-section-title {
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-news__text-block {
    font-size: 1em;
  }

  .page-news__category-grid,
  .page-news__article-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-news__category-card,
  .page-news__article-card {
    padding: 20px;
    min-height: auto;
  }

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

  .page-news__card-title {
    font-size: 1.3em;
  }

  .page-news__list-item {
    font-size: 1em;
    padding-left: 25px;
  }

  .page-news__registration-steps .page-news__list-item {
    padding-left: 35px;
  }

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

  .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Mobile specific responsive rules */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__category-card,
  .page-news__article-card,
  .page-news__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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,
  .page-news__view-all-button-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;
    overflow: hidden !important;
  }
  
  .page-news__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  .page-news__video-section {
    padding-top: 10px !important;
  }

  /* Ensure content area images are not smaller than 200px if not overridden by max-width: 100% */
  .page-news__category-card img, .page-news__article-list img {
    min-width: 200px; 
    min-height: 200px; 
  }
}

@media (max-width: 480px) {
  .page-news__hero-content {
    margin-top: -40px;
  }

  .page-news__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

  .page-news__cta-button--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}