/* style/news.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không được thêm vào đây */

/* General styles for the news page */
.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 20px;
  padding-top: 10px; /* Specific small top padding for this section */
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-news__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* CTA Button */
.page-news__cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #333333; /* Dark text for contrast on bright button */
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: none; /* No border for gradient button */
  cursor: pointer;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-news__cta-button--large {
  padding: 15px 40px;
  font-size: 1.3em;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

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

.page-news__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
}

.page-news__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-news__news-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
}

.page-news__news-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-news__news-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__news-card-title a {
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: #FFD86A; /* Lighter gold on hover */
}

.page-news__news-card-meta {
  font-size: 0.9em;
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow excerpt to grow */
}

.page-news__read-more-link {
  display: inline-block;
  color: #FFD86A; /* Gold */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  align-self: flex-start; /* Align to start */
}

.page-news__read-more-link:hover {
  color: #FFF5E1; /* Text Main on hover */
}

.page-news__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Promo Banner Section */
.page-news__promo-banner-section {
  background-color: #B71C1C; /* Background */
  padding: 80px 0;
  text-align: center;
  color: #FFF5E1; /* Text Main */
}

.page-news__promo-banner-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-news__promo-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
}

.page-news__promo-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  /* Images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers */
  .page-news__hero-section,
  .page-news__latest-news-section,
  .page-news__promo-banner-section,
  .page-news__container,
  .page-news__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-news__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important; /* Small top padding */
  }

  .page-news__latest-news-section,
  .page-news__promo-banner-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-news__hero-content {
    padding: 0 15px;
  }

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

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

  /* Buttons */
  .page-news__cta-button,
  .page-news__read-more-link {
    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;
    text-align: center;
  }

  .page-news__cta-button--large {
    font-size: 1.1em;
  }

  .page-news__view-all-button-container {
    padding: 0 15px;
  }

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

  .page-news__news-card-image {
    height: 180px; /* Adjust height for mobile */
  }
  
  .page-news__promo-banner-content {
    padding: 0 15px;
  }
}

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