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

.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px;
  text-align: center;
  overflow: hidden;
  color: var(--text-main);
  background: linear-gradient(180deg, #08160F 0%, #11271B 100%);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-news__hero-content {
  max-width: 900px;
  z-index: 1;
}

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

.page-news__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-news__content-area,
.page-news__categories-section,
.page-news__access-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-news__text-block p {
  margin-bottom: 1.2em;
}

.page-news__highlight-section,
.page-news__benefits-section,
.page-news__conclusion-section {
  padding: 60px 20px;
  text-align: center;
}

.page-news__card-bg {
  background-color: var(--card-bg);
}

.page-news__dark-section {
  background-color: var(--deep-green);
  color: var(--text-main);
}

.page-news__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-news__card-title {
  font-size: 1.8em;
  color: var(--gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-news__card-text {
  font-size: 1em;
  color: var(--text-secondary);
  text-align: justify;
}

.page-news__category-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: var(--text-main);
}

.page-news__category-title {
  font-size: 2em;
  color: var(--gold);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-news__category-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto 25px auto;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-news__category-item p {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  text-align: justify;
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-secondary:hover {
  background-color: var(--gold);
  color: var(--card-bg);
}

.page-news__benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-news__benefit-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--gold);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
}

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

.page-news__benefit-item strong {
  color: var(--text-main);
}

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

  .page-news__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    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__content-area,
  .page-news__highlight-section,
  .page-news__categories-section,
  .page-news__benefits-section,
  .page-news__access-section,
  .page-news__conclusion-section {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-news__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__card {
    padding: 20px;
  }

  .page-news__card-image,
  .page-news__category-image,
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__category-item {
    padding: 30px 20px;
  }

  .page-news__category-title {
    font-size: 1.6em;
  }

  .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;
  }
}