/* style/news.css */
/* 
  Thiết kế bởi: AI Full-stack Engineer
  Mô tả: Các kiểu dáng riêng cho trang Tin Tức (News Page) của Sunwin 20.
  Mục tiêu: Đảm bảo tính nhất quán với thương hiệu, đáp ứng yêu cầu SEO và trải nghiệm người dùng.
  Ngôn ngữ: Tiếng Việt (vi-VN)
*/

/* Biến màu sắc theo thương hiệu */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #1A1A1A; /* Đen sâu */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-1: #0d0d0d; /* Giả định từ shared.css */
  --bg-light-1: #f8f9fa;
  --border-color: #e0e0e0;
}

/* 🚨 Đảm bảo nội dung không bị che bởi header cố định */
.page-news {
  padding-top: 120px; /* Desktop: Điều chỉnh dựa trên chiều cao header thực tế */
  color: var(--text-light); /* Vì body background là --dark-bg-1, nên dùng text-light */
  background-color: var(--bg-dark-1); /* Kế thừa từ body, nhưng đặt lại để rõ ràng */
}

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

/* Hero Section */
.page-news__hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(26, 26, 26, 0.8) 100%), url('[GALLERY:hero:tài xỉu sunwin 20,news_hero,background]') center/cover no-repeat;
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-color);
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Cho phép các nút xuống dòng trên thiết bị di động */
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap; /* Ngăn chặn xuống dòng trên desktop */
}

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

.page-news__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-news__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-news__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Grid Layout for Cards */
.page-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__card {
  background: rgba(255, 255, 255, 0.08); /* Nền tối, chữ sáng */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-light); /* Chữ sáng trên nền tối */
}

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

.page-news__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__card-title a.page-news__card-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-news__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-news__read-more-button:hover {
  background: #e6c200;
  transform: translateY(-1px);
}

/* Content Blocks */
.page-news__content-block {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1.05em;
}

.page-news__content-block p {
  margin-bottom: 1.2em;
  color: #cccccc;
}

.page-news__sub-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-news__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1.5em;
  color: #cccccc;
}

.page-news__list li {
  margin-bottom: 0.8em;
  line-height: 1.6;
}

.page-news__list li strong {
  color: var(--primary-color);
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08); /* Nền tối, chữ sáng */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.1); /* Nền tối hơn cho câu hỏi */
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--primary-color); /* Chữ vàng kim cho câu hỏi */
}

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

.page-news__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color); /* Chữ vàng kim */
}

.page-news__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
}

.page-news__faq-item.active .page-news__faq-toggle {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc; /* Chữ sáng cho câu trả lời */
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Nền nhẹ hơn cho câu trả lời */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
}

.page-news__faq-answer p {
  margin-bottom: 1em;
  color: #cccccc;
}

.page-news__app-download-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__app-download-button:hover {
  background: #e6c200;
  transform: translateY(-1px);
}

/* Brand Intro Section */
.page-news__brand-intro-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-news__brand-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__brand-image {
  width: 150px; /* Tăng kích thước ảnh */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Có thể là hình tròn nếu phù hợp */
  border: 3px solid var(--primary-color);
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-news__brand-item .page-news__sub-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-news__brand-item p {
  color: #cccccc;
  line-height: 1.6;
}

.page-news__brand-item .page-news__list {
  text-align: left;
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.page-news__brand-item .page-news__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #cccccc;
}

.page-news__brand-item .page-news__list li::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Blog List Section */
.page-news__blog-list-section {
  padding: 60px 0 80px;
}

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

.page-news__blog-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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