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

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

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

.page-news__section-title,
.page-news__hero-title,
.page-news__cta-title {
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-news__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  margin-bottom: 15px;
}

.page-news__section-description,
.page-news__hero-description,
.page-news__cta-description {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: 1.1em;
}

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom for content */
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  filter: brightness(0.6);
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  margin-top: -150px; /* Pull content up slightly, but not over image */
  box-sizing: border-box;
}

.page-news__hero-button,
.page-news__cta-button,
.page-news__about-button,
.page-news__view-all-button {
  display: block;
  width: fit-content;
  margin: 0 auto;
  padding: 15px 30px;
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__hero-button:hover,
.page-news__cta-button:hover,
.page-news__about-button:hover,
.page-news__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__latest-updates-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

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

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

.page-news__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

.page-news__card-excerpt {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__card-date {
  font-size: 0.85em;
  color: var(--text-secondary);
  text-align: right;
  display: block;
}

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

.page-news__about-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

.page-news__about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.page-news__text-block {
  flex: 1;
  min-width: 300px;
  color: var(--text-main);
}

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

.page-news__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

.page-news__features-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-news__feature-item {
  text-align: center;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-news__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-news__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-news__feature-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

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

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

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

.page-news__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

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

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

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

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

.page-news__cta-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-content {
    margin-top: -100px;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }
  .page-news__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-news__section-description,
  .page-news__hero-description,
  .page-news__cta-description,
  .page-news p,
  .page-news li {
    font-size: 1em;
  }
  .page-news__news-grid,
  .page-news__features-grid {
    grid-template-columns: 1fr;
  }
  .page-news__about-content {
    flex-direction: column;
  }
  .page-news__text-block,
  .page-news__image-block {
    min-width: unset;
    width: 100%;
  }
  .page-news__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-news__hero-button,
  .page-news__cta-button,
  .page-news__about-button,
  .page-news__view-all-button {
    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__hero-image,
  .page-news__card-image,
  .page-news__about-image,
  .page-news__feature-icon {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image-wrapper,
  .page-news__news-card,
  .page-news__about-content,
  .page-news__feature-item,
  .page-news__faq-item,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for container elements */
  }
  .page-news__hero-section {
    padding-top: 10px !important;
  }
  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__section-title {
    font-size: 1.5em;
  }
  .page-news__hero-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-news__hero-content {
    margin-top: -60px;
  }
  .page-news__hero-button,
  .page-news__cta-button,
  .page-news__about-button,
  .page-news__view-all-button {
    padding: 12px 20px;
    font-size: 0.9em;
  }
  .page-news__card-title {
    font-size: 1.1em;
  }
  .page-news__card-excerpt {
    font-size: 0.85em;
  }
  .page-news__card-date {
    font-size: 0.75em;
  }
  .page-news__feature-title {
    font-size: 1.2em;
  }
  .page-news__feature-description {
    font-size: 0.85em;
  }
}