/* style/news.css */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #1A202C; /* Xám đậm/Đen */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light-card: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.15);
}

.page-news {
  background-color: var(--background-dark);
  color: var(--text-light);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 100px; /* Adjust for fixed header */
}

.page-news__hero-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, #1A202C 0%, #000000 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 5px solid var(--primary-color);
}

.page-news__hero-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-news__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__text-link:hover {
  color: #FFEA00;
  text-decoration: underline;
}

.page-news__highlight-text {
  color: var(--primary-color);
  font-weight: bold;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-news__btn-primary:hover {
  background: #FFC400;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-news__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-news__articles-section {
  padding: 60px 20px;
  background-color: #111111; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
}

.page-news__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

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

.page-news__article-card {
  background: var(--background-light-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-news__article-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 14px;
  color: #888888;
  margin-top: auto;
  margin-bottom: 15px;
}

.page-news__read-more-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-btn:hover {
  background: #FFC400;
}

.page-news__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 10px;
}

.page-news__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333333;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-news__pagination-link:hover:not(.page-news__pagination-link--active):not(.page-news__pagination-link--disabled) {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-news__pagination-link--active {
  background: var(--primary-color);
  color: var(--secondary-color);
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-news__pagination-link--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-news__cta-bottom-section {
  background: linear-gradient(45deg, #000000 0%, #1A202C 100%);
  padding: 80px 20px;
  text-align: center;
  border-top: 5px solid var(--primary-color);
}

.page-news__cta-bottom-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__cta-bottom-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-news__cta-bottom-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 40px;
  }
  .page-news__hero-description,
  .page-news__cta-bottom-description {
    font-size: 17px;
  }
  .page-news__section-title {
    font-size: 32px;
  }
  .page-news__article-title {
    font-size: 22px;
  }
  .page-news__cta-bottom-title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 80px; /* Adjust for fixed mobile header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__hero-section,
  .page-news__articles-section,
  .page-news__cta-bottom-section {
    padding: 40px 15px;
  }
  .page-news__hero-container,
  .page-news__articles-container,
  .page-news__cta-bottom-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-news__article-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__article-card {
    border-radius: 8px;
  }
  .page-news__article-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__article-content {
    padding: 20px;
  }
  .page-news__article-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-news__article-excerpt {
    font-size: 15px;
    margin-bottom: 15px;
  }
  .page-news__read-more-btn {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-news__pagination {
    margin-top: 40px;
    gap: 8px;
  }
  .page-news__pagination-link {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .page-news__cta-bottom-title {
    font-size: 30px;
    margin-bottom: 20px;
  }
  .page-news__cta-bottom-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-news__section,
  .page-news__card,
  .page-news__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__hero-section { /* Mobile specific padding-top for hero */
    padding-top: 10px !important;
  }
}