/* style/news.css */

/* Base styles and variables */
.page-news {
  --page-news-bg-color: #08160F;
  --page-news-card-bg: #11271B;
  --page-news-text-main: #F2FFF6;
  --page-news-text-secondary: #A7D9B8;
  --page-news-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-news-border-color: #2E7A4E;
  --page-news-glow-color: #57E38D;
  --page-news-gold-color: #F2C14E;
  --page-news-divider-color: #1E3A2A;
  --page-news-deep-green: #0A4B2C;

  font-family: 'Arial', sans-serif;
  color: var(--page-news-text-main); /* Default text color for the page */
  background-color: var(--page-news-bg-color);
  line-height: 1.6;
}

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

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-news-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-news__section-description {
  font-size: 1.1em;
  color: var(--page-news-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--page-news-gold-color);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--page-news-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-news__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
}

.page-news__btn-primary {
  background: var(--page-news-btn-gradient);
  color: var(--page-news-text-main);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
  margin: 10px;
}

.page-news__btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--page-news-glow-color);
  border: 2px solid var(--page-news-glow-color);
  margin: 10px;
}

.page-news__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.3);
}

/* Latest Articles Section */
.page-news__latest-articles {
  background-color: var(--page-news-bg-color);
}

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

.page-news__article-card {
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 200px;
  min-height: 200px;
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-news__article-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--page-news-text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-date {
  font-size: 0.9em;
  color: var(--page-news-text-secondary);
  margin-bottom: 15px;
  display: block;
}

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

.page-news__read-more {
  color: var(--page-news-glow-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.page-news__read-more .page-news__arrow {
  margin-left: 8px;
  transition: margin-left 0.3s ease;
}

.page-news__article-link:hover .page-news__arrow {
  margin-left: 12px;
}

.page-news__button-container {
  margin-top: 50px;
}

/* Featured Announcements Section */
.page-news__dark-section {
  background-color: var(--page-news-deep-green);
  color: var(--page-news-text-main);
}

.page-news__announcement-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-news__announcement-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: var(--page-news-card-bg);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 25px;
}

.page-news__announcement-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 200px;
  min-height: 200px;
}

.page-news__announcement-content {
  flex-grow: 1;
}

.page-news__announcement-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-news-text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__announcement-text {
  font-size: 1em;
  color: var(--page-news-text-secondary);
  margin-bottom: 20px;
}

/* Why Choose Section */
.page-news__why-choose-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-news__why-choose-image {
  width: 45%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-news__why-choose-text {
  flex-grow: 1;
}

.page-news__why-choose-text p {
  margin-bottom: 15px;
  color: var(--page-news-text-secondary);
}

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

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

.page-news__faq-item:hover {
  background-color: rgba(17, 39, 27, 0.8);
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--page-news-glow-color);
  margin-left: 15px;
  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 25px;
  color: var(--page-news-text-secondary);
  text-align: left;
  line-height: 1.5;
}

/* CTA Bottom Section */
.page-news__cta-bottom {
  padding: 80px 0;
  background-color: var(--page-news-deep-green);
}

.page-news__cta-bottom .page-news__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.page-news__cta-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-news__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-news__cta-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__announcement-item {
    flex-direction: column;
    text-align: center;
  }

  .page-news__announcement-image {
    width: 100%;
    max-width: 600px;
  }

  .page-news__why-choose-content {
    flex-direction: column;
    align-items: center;
  }

  .page-news__why-choose-image {
    width: 100%;
    max-width: 600px;
  }

  .page-news__cta-bottom .page-news__container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-news__cta-content {
    text-align: center;
  }

  .page-news__cta-buttons {
    justify-content: center;
  }

  .page-news__cta-image {
    width: 100%;
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .page-news__section-title {
    font-size: 2em;
  }

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

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

  .page-news__container {
    padding: 0 15px !important;
  }

  /* Images responsive */
  .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,
  .page-news__hero-image-wrapper,
  .page-news__announcement-item,
  .page-news__why-choose-content,
  .page-news__cta-bottom .page-news__container,
  .page-news__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Buttons responsive */
  .page-news__btn,
  .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;
    margin: 10px 0 !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
  }

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

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