/* style/news.css */
:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light-card: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

.page-news {
  color: var(--text-light);
  background-color: var(--bg-dark);
  padding-top: 120px; /* Adjust based on header height */
}

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

.page-news__hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('[GALLERY:hero:789b1,tin-tuc,banner-chinh,nen-toi]') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  position: relative;
  margin-bottom: 40px;
}

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

.page-news__hero-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-news__hero-description {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.6;
  opacity: 0.9;
}

.page-news__hero-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-news__hero-cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-news__section-description {
  font-size: 1.1em;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  opacity: 0.8;
}

.page-news__latest-articles,
.page-news__guides-tips,
.page-news__security-commitment,
.page-news__future-outlook {
  padding: 60px 0;
}

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

.page-news__article-card,
.page-news__tip-item,
.page-news__security-item {
  background-color: var(--bg-light-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-news__article-card:hover,
.page-news__tip-item:hover,
.page-news__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__article-image,
.page-news__tip-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

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

.page-news__article-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  line-height: 1.4;
}

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

.page-news__article-title a.page-news__article-link:hover {
  color: var(--secondary-color);
}

.page-news__article-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__article-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  display: block;
}

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

.page-news__read-more-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-news__tip-item {
  text-align: center;
  padding-bottom: 20px;
}

.page-news__tip-image {
  height: 200px;
  border-radius: 10px 10px 0 0;
}

.page-news__tip-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin: 20px 0 10px;
  padding: 0 15px;
}

.page-news__tip-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-news__security-item {
  text-align: center;
  padding: 30px;
}

.page-news__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-news__security-item-title {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-news__security-item-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.page-news__cta-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.page-news__cta-title {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.page-news__cta-description {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
  opacity: 0.9;
}

.page-news__cta-button.page-news__btn-primary {
  display: inline-block;
  padding: 18px 50px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-news__cta-button.page-news__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-news__future-content p {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* 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: 2.2em;
  }
  .page-news__cta-title {
    font-size: 2.5em;
  }
  .page-news__article-image,
  .page-news__tip-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-news {
    padding-top: 100px; /* Mobile: Adjust based on mobile header height */
  }
  .page-news__hero-section {
    padding: 60px 15px;
    min-height: 350px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-news__hero-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
    padding: 0 15px;
  }
  .page-news__latest-articles,
  .page-news__guides-tips,
  .page-news__security-commitment,
  .page-news__future-outlook {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__article-grid,
  .page-news__tips-grid,
  .page-news__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__article-card,
  .page-news__tip-item,
  .page-news__security-item {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-news__article-image,
  .page-news__tip-image {
    height: 160px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__security-icon {
    width: 80px;
    height: 80px;
  }
  .page-news__cta-section {
    padding: 60px 15px;
  }
  .page-news__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  .page-news__cta-button.page-news__btn-primary {
    padding: 15px 40px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__future-content p {
    font-size: 0.95em;
    padding: 0 5px;
  }
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__hero-description {
    font-size: 0.9em;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__article-image,
  .page-news__tip-image {
    height: 140px;
  }
  .page-news__article-title {
    font-size: 1.2em;
  }
  .page-news__tip-title {
    font-size: 1.1em;
  }
  .page-news__security-item-title {
    font-size: 1.1em;
  }
  .page-news__security-icon {
    width: 70px;
    height: 70px;
  }
}