/* style/news.css */

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

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-color);
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-main-color);
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding for the first section */
  background-color: var(--background-color);
}

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

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-news__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-news__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-news__intro-text {
  font-size: clamp(1em, 2vw, 1.25em);
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--button-gradient);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  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 5px 15px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--secondary {
  background: var(--primary-color);
}

.page-news__cta-button--primary {
  background: var(--button-gradient);
}

/* Latest Updates Section */
.page-news__latest-updates-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-news__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-news__news-card {
  background-color: var(--card-bg-color);
  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;
}

.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: 220px;
  object-fit: cover;
  display: block;
}

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

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

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

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

.page-news__news-card-excerpt {
  font-size: 1em;
  color: var(--text-secondary-color);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
}

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

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

.page-news__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__view-all-button:hover {
  background: var(--secondary-color);
}

/* About News Section */
.page-news__about-news-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-news__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-news__text-block {
  flex: 2;
}

.page-news__text-block p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1.1em;
  color: var(--text-secondary-color);
}

.page-news__text-block p a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
}

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

.page-news__image-block {
  flex: 1;
  text-align: center;
}

.page-news__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions Callout Section */
.page-news__promotions-callout-section {
  background-color: var(--card-bg-color);
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--divider-color);
  border-bottom: 1px solid var(--divider-color);
}

.page-news__promotions-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

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

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

.page-news__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-item summary:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

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

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

.page-news__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-news__faq-answer p {
  margin-bottom: 10px;
}

.page-news__faq-answer a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 600;
}

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

/* Register CTA Section */
.page-news__register-cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  text-align: center;
  color: var(--text-main-color);
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-main-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-content {
    padding: 15px;
  }

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

  .page-news__intro-text {
    font-size: clamp(0.9em, 1.8vw, 1.1em);
  }

  .page-news__content-wrapper {
    flex-direction: column;
  }

  .page-news__image-block {
    margin-top: 30px;
  }
}

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

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

  .page-news__hero-content {
    position: static;
    transform: none;
    width: 100%;
    padding: 20px;
    background: none;
    border-radius: 0;
  }

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

  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    color: var(--gold-color);
  }

  .page-news__intro-text {
    font-size: clamp(0.9em, 3vw, 1.1em);
  }

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

  .page-news__latest-updates-section,
  .page-news__about-news-section,
  .page-news__promotions-callout-section,
  .page-news__faq-section,
  .page-news__register-cta-section {
    padding: 40px 0;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .page-news__content-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-updates-section,
  .page-news__about-news-section,
  .page-news__promotions-callout-section,
  .page-news__faq-section,
  .page-news__register-cta-section,
  .page-news__news-grid,
  .page-news__news-card,
  .page-news__content-wrapper,
  .page-news__image-block,
  .page-news__text-block,
  .page-news__faq-list,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-news__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .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__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 !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  .page-news__video-section {
    padding-top: 10px !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 {
    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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}