/* Base styles for the Tin Tức page */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F4F7FB; /* Page background color */
}

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

.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  text-align: center;
  background-color: #F4F7FB;
}

.page-tin-tuc__hero-image {
  margin-bottom: 20px;
}

.page-tin-tuc__hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tin-tuc__hero-description {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  max-width: 100%; /* Ensure button doesn't exceed container */
  box-sizing: border-box;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: none;
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-tin-tuc__btn-secondary:hover {
  background: #F4F7FB;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-tin-tuc__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
}

.page-tin-tuc__section-title--white {
  color: #ffffff;
}

.page-tin-tuc__latest-news-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-tin-tuc__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-tin-tuc__news-card {
  background-color: #ffffff; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border color */
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-tin-tuc__card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-tin-tuc__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-tin-tuc__news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tin-tuc__news-card-content {
  padding: 20px;
}

.page-tin-tuc__news-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-tin-tuc__news-card-meta {
  font-size: 0.9rem;
  color: #666666;
  margin-bottom: 15px;
}

.page-tin-tuc__news-card-excerpt {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-tin-tuc__read-more {
  color: #2F6BFF; /* Main color */
  font-weight: bold;
  font-size: 0.95rem;
}

.page-tin-tuc__read-more:hover {
  text-decoration: underline;
}

.page-tin-tuc__view-all-button-container {
  text-align: center;
}

.page-tin-tuc__about-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main color */
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__about-text {
  font-size: 1.1rem;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

.page-tin-tuc__cta-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-tin-tuc__cta-inner {
  max-width: 800px;
}

.page-tin-tuc__cta-text {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-tin-tuc__container,
  .page-tin-tuc__hero-content,
  .page-tin-tuc__cta-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-tin-tuc__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc a[class*="button"],
  .page-tin-tuc a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-tin-tuc__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-tin-tuc__latest-news-section {
    padding: 40px 0;
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-tin-tuc__news-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-tin-tuc__news-card-image {
    height: 180px;
  }

  .page-tin-tuc__news-card-title {
    font-size: 1.15rem;
    -webkit-line-clamp: 3;
  }

  .page-tin-tuc__news-card-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 5;
  }

  .page-tin-tuc__about-section {
    padding: 50px 0;
  }

  .page-tin-tuc__about-text,
  .page-tin-tuc__cta-text {
    font-size: 1rem;
  }

  .page-tin-tuc__cta-section {
    padding: 40px 0;
  }

  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-tin-tuc__section,
  .page-tin-tuc__card,
  .page-tin-tuc__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}