/* style/news.css */

:root {
  --primary-color: #CC0000; /* Đỏ mạnh */
  --secondary-color: #FFD700; /* Vàng kim */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f4f4;
  --background-dark: #222222;
  --border-color: #e0e0e0;
  --card-bg: #ffffff;
  --hover-effect: #e6e6e6;
}

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

.page-news .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Banner */
.page-news .hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #a80000 100%); /* Slightly darker red for gradient */
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news .hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2); /* Overlay for better text readability */
  z-index: 1;
}

.page-news .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-news .hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news .hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-news .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news .cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Section Titles */
.page-news .section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  margin-top: 60px;
  position: relative;
}

.page-news .section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Latest Articles Grid */
.page-news .latest-articles {
  padding: 60px 0;
  background-color: var(--background-light);
}

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

.page-news .article-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news .article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-news .article-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-color);
}

.page-news .article-content {
  padding: 25px;
}

.page-news .article-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
  min-height: 75px; /* Ensure consistent height */
}

.page-news .article-excerpt {
  font-size: 0.95em;
  color: var(--text-dark);
  margin-bottom: 15px;
  height: 90px; /* Limit excerpt height */
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news .article-date {
  font-size: 0.85em;
  color: #777;
  display: block;
  text-align: right;
}

/* All Articles List */
.page-news .all-articles {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-news .articles-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-news .article-item {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-news .article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-news .article-list-image {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
}

.page-news .article-list-content {
  padding: 20px 25px;
  flex-grow: 1;
}

.page-news .article-list-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-news .article-list-title a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-news .article-list-title a:hover {
  color: #a80000;
}

.page-news .article-list-excerpt {
  font-size: 0.9em;
  color: var(--text-dark);
  margin-bottom: 15px;
  height: 50px; /* Limit excerpt height */
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pagination */
.page-news .pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  gap: 10px;
}

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

.page-news .page-link.active,
.page-news .page-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-color: var(--primary-color);
}

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

.page-news .faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  margin-bottom: 10px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question:hover {
  background: var(--hover-effect);
  border-color: var(--primary-color);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #a80000; /* Darker red when active */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #fdfdfd;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
  max-height: 300px; /* Sufficient height for content */
  padding: 15px 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
  color: var(--text-dark);
}

/* Call to Action Section */
.page-news .call-to-action {
  background: linear-gradient(90deg, var(--primary-color), #a80000);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-news .cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: bold;
}

.page-news .cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news .main-cta {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-news .main-cta:hover {
  background-color: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news .hero-title {
    font-size: 2.8em;
  }

  .page-news .hero-description {
    font-size: 1.1em;
  }

  .page-news .section-title {
    font-size: 2em;
  }

  .page-news .article-list-image {
    width: 200px;
    height: 150px;
  }

  .page-news .article-list-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-news .hero-title {
    font-size: 2.2em;
  }

  .page-news .hero-description {
    font-size: 1em;
  }

  .page-news .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

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

  .page-news .article-card .article-title {
    min-height: auto;
  }

  .page-news .article-card .article-excerpt {
    height: auto;
  }

  .page-news .article-item {
    flex-direction: column;
  }

  .page-news .article-list-image {
    width: 100%;
    height: 200px;
  }

  .page-news .article-list-content {
    padding: 15px;
  }

  .page-news .article-list-title {
    font-size: 1.2em;
  }

  .page-news .article-list-excerpt {
    height: auto;
  }

  .page-news .pagination .page-link {
    width: 35px;
    height: 35px;
    font-size: 0.9em;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 20px;
  }

  .page-news .cta-title {
    font-size: 2em;
  }

  .page-news .cta-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-news .hero-title {
    font-size: 1.8em;
  }

  .page-news .section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news .article-content {
    padding: 15px;
  }

  .page-news .article-title {
    font-size: 1.3em;
  }

  .page-news .article-excerpt {
    font-size: 0.85em;
  }

  .page-news .article-list-title {
    font-size: 1.1em;
  }

  .page-news .cta-title {
    font-size: 1.6em;
  }
  
  .page-news .faq-question {
    padding: 12px 15px;
  }
  
  .page-news .faq-answer {
    padding: 0 15px;
  }
  
  .page-news .faq-item.active .faq-answer {
    padding: 12px 15px;
  }
}