/* style/news.css */

:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient-start: #2AD16F;
  --color-button-gradient-end: #13994A;
  --color-card-bg: #11271B;
  --color-bg-dark: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

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

.page-news__section {
  padding: 60px 0;
  position: relative;
  z-index: 1;
}

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

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  margin-top: -200px; /* Adjust to overlap image slightly for visual effect */
  padding: 20px;
  max-width: 900px;
  background: linear-gradient(0deg, var(--color-bg-dark) 0%, rgba(8, 22, 15, 0.7) 50%, rgba(8, 22, 15, 0) 100%);
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--color-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-news__description {
  font-size: 1.1em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-news__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

.page-news__text-block {
  font-size: 1.05em;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-news__text-block strong {
  color: var(--color-gold);
}

.page-news__cta-button {
  display: inline-block;
  background: var(--color-button-gradient-start);
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

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

.page-news__grid-item {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

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

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

.page-news__grid-item .page-news__item-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-news__grid-item .page-news__item-text {
  font-size: 0.95em;
  color: var(--color-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-news__update-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-news__update-item {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
}

.page-news__update-item .page-news__item-title {
  font-size: 1.5em;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__update-item .page-news__item-text {
  font-size: 1em;
  color: var(--color-text-main);
}

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

.page-news__news-card {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

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

.page-news__news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-card-date {
  font-size: 0.85em;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  flex-grow: 1;
}

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

.page-news__news-card-title a:hover {
  color: var(--color-gold);
}

.page-news__news-card-excerpt {
  font-size: 0.95em;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-button:hover {
  color: var(--color-primary);
}

.page-news__view-all-button-wrapper {
  text-align: center;
}

.page-news__faq-list {
  margin-top: 30px;
}

.page-news__faq-item {
  background-color: var(--color-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--color-gold);
  cursor: pointer;
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-news__faq-item[open] > .page-news__faq-question {
  background-color: var(--color-deep-green);
  border-bottom: 1px solid var(--color-divider);
  border-radius: 10px 10px 0 0;
}

.page-news__faq-question:hover {
  background-color: var(--color-deep-green);
}

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

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

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

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

.page-news__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--color-text-secondary);
  background-color: var(--color-card-bg);
  border-radius: 0 0 10px 10px;
}

.page-news__faq-answer p {
  margin: 0;
  color: var(--color-text-secondary);
}

.page-news__cta-register-section {
  background: linear-gradient(90deg, var(--color-deep-green) 0%, var(--color-primary) 100%);
  text-align: center;
  padding: 80px 0;
  border-radius: 10px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-news__cta-register-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__cta-register-title {
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.page-news__cta-register-title::after {
  background-color: var(--color-gold);
}

.page-news__cta-register-text {
  max-width: 800px;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: var(--color-text-main);
}

.page-news__cta-register-button {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-text-main);
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 50px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -150px;
  }
}

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

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

  .page-news__hero-content {
    margin-top: -100px;
    padding: 15px;
  }

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

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

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

  .page-news__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

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

  .page-news__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-news__grid,
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__feature-image {
    height: 200px;
  }

  .page-news__grid-item .page-news__item-title {
    font-size: 1.2em;
    margin: 15px 15px 8px;
  }

  .page-news__grid-item .page-news__item-text {
    padding: 0 15px 15px;
  }

  .page-news__update-item {
    padding: 20px;
  }

  .page-news__update-item .page-news__item-title {
    font-size: 1.3em;
  }

  .page-news__news-card-image {
    height: 180px;
  }

  .page-news__news-card-content {
    padding: 15px;
  }

  .page-news__news-card-title {
    font-size: 1.1em;
  }

  .page-news__news-card-excerpt {
    font-size: 0.9em;
  }

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

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

  .page-news__cta-register-section {
    padding: 50px 0;
    margin: 40px auto;
  }

  .page-news__cta-register-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }

  .page-news__cta-register-text {
    font-size: 1em;
  }

  .page-news__cta-register-button {
    padding: 15px 30px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image, video, button responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
  }

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

}