/* style/tin-tuc.css */

/* General Styles for .page-tin-tuc */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
}

.page-tin-tuc__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-tin-tuc__section-title {
  font-size: clamp(28px, 4vw, 36px);
  color: #E53935;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-tin-tuc__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  color: #333333;
}

/* Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary,
.page-tin-tuc__read-more-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-tin-tuc__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-tin-tuc__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-tin-tuc__read-more-btn {
  background: #E53935;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
}

.page-tin-tuc__read-more-btn:hover {
  opacity: 0.9;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #F5F7FA;
  color: #333333;
}

.page-tin-tuc__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
  flex-wrap: wrap;
}

.page-tin-tuc__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  text-align: left;
}

.page-tin-tuc__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
  text-align: center;
}

.page-tin-tuc__hero-content .page-tin-tuc__description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 25px;
}

.page-tin-tuc__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-tin-tuc__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* News List Section */
.page-tin-tuc__news-list-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-tin-tuc__news-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-tin-tuc__news-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover .page-tin-tuc__news-thumbnail {
  transform: scale(1.05);
}

.page-tin-tuc__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tin-tuc__news-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tuc__news-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-title a:hover {
  color: #E53935;
}

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

.page-tin-tuc__news-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__view-all-news {
  text-align: center;
  margin-top: 30px;
}

/* CTA Section */
.page-tin-tuc__cta-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__dark-bg .page-tin-tuc__section-title,
.page-tin-tuc__dark-bg .page-tin-tuc__description {
  color: #ffffff;
}

.page-tin-tuc__dark-bg .page-tin-tuc__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border-color: #ffffff;
}

.page-tin-tuc__dark-bg .page-tin-tuc__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
}

/* Responsive Styles */

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

  .page-tin-tuc__content-area {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-tin-tuc__section-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-tin-tuc__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* HERO Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Fixed top padding for mobile */
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-tin-tuc__hero-content {
    order: 2; /* Content below image on mobile */
    text-align: center;
  }

  .page-tin-tuc__main-title {
    font-size: 28px;
    text-align: center;
  }

  .page-tin-tuc__hero-content .page-tin-tuc__description {
    font-size: 16px;
    text-align: center;
  }

  .page-tin-tuc__hero-image {
    order: 1; /* Image above content on mobile */
  }

  .page-tin-tuc__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* News List Section */
  .page-tin-tuc__news-list-section {
    padding: 40px 0;
  }

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

  .page-tin-tuc__news-image-wrapper {
    height: 180px; /* Adjust height for mobile card images */
  }

  .page-tin-tuc__news-thumbnail {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }

  .page-tin-tuc__news-title {
    font-size: 18px;
  }

  .page-tin-tuc__news-excerpt {
    font-size: 15px;
  }

  /* CTA Section */
  .page-tin-tuc__cta-section {
    padding: 50px 0;
  }

  /* General Images and Containers */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  /* Buttons and Button Containers */
  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .page-tin-tuc__read-more-btn,
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-tin-tuc__view-all-news .page-tin-tuc__btn-primary {
    max-width: 80% !important; /* Slightly smaller than full width for aesthetic */
    width: 80% !important;
    margin: 0 auto;
  }
}