/* style/tin-tuc.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-tin-tuc {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Assuming light body background */
  background-color: var(--background-color);
}

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

.page-tin-tuc__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Fixed header spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px;
}

.page-tin-tuc__hero-image-wrapper {
  width: 100%;
  height: auto;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-tin-tuc__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-tin-tuc__description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-tin-tuc__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-tin-tuc__section-subtitle {
  font-size: 1.1em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-tin-tuc__latest-news-section {
  padding: 40px 0;
  background-color: var(--card-bg);
}

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

.page-tin-tuc__news-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  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.15);
}

.page-tin-tuc__news-card-link-wrapper {
  display: block;
  overflow: hidden;
  height: 200px; /* Fixed height for image container */
}

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

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

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

.page-tin-tuc__news-card-date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

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

.page-tin-tuc__news-card-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
  color: var(--primary-color);
}

.page-tin-tuc__news-card-excerpt {
  font-size: 1em;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-tin-tuc__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.5);
}

.page-tin-tuc__btn-secondary {
  background-color: var(--card-bg);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-tin-tuc__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-tin-tuc__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-tin-tuc__feature-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-tin-tuc__feature-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1em;
  color: var(--text-main);
}

.page-tin-tuc__feature-content p {
  margin-bottom: 20px;
}

.page-tin-tuc__feature-image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-tin-tuc__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto;
}

.page-tin-tuc__image-caption {
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

.page-tin-tuc__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tin-tuc__feature-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-tin-tuc__feature-list li {
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-tin-tuc__cta-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-tin-tuc__cta-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* --- General Responsive Styles --- */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-tin-tuc__section,
.page-tin-tuc__card,
.page-tin-tuc__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* --- Media Queries --- */

/* Desktop/Tablet common styles (for consistency with homepage specific sections) */
/* Placeholder for __hero-carousel-section (if it were present on homepage) */
.page-tin-tuc__hero-carousel-section { /* Not used on tin-tuc.html, but required for CSS output consistency */ }
.page-tin-tuc__hero-slider { /* Not used on tin-tuc.html */ }
.page-tin-tuc__hero-slide { /* Not used on tin-tuc.html */ }

/* Placeholder for __guide-box (if it were present on homepage) */
.page-tin-tuc__guide-box { padding: 16px 20px 24px; background: #f5e6d3; border-radius: 4px; /* Example desktop styles */ }
.page-tin-tuc__guide-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; /* Example desktop styles */ }
.page-tin-tuc__guide-card { flex: 0 0 20%; max-width: 20%; /* Example desktop styles */ }
.page-tin-tuc__guide-card img { aspect-ratio: 250/350; object-fit: contain; width: 100%; height: auto; /* Example desktop styles */ }
.page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-5 { padding-top: 50px; /* Example desktop styles */ }
.page-tin-tuc__guide-card--pos-2, .page-tin-tuc__guide-card--pos-4 { padding-top: 25px; /* Example desktop styles */ }

/* Placeholder for __home-content-box (if it were present on homepage) */
.page-tin-tuc__home-content-box { max-width: 91%; margin: 0 auto; padding: 10px 16px; border: 5px solid #3477c9; border-radius: 15px; box-shadow: 0 0 20px #3477c9; height: 700px; /* Example desktop styles */ }
.page-tin-tuc__home-content-inner { height: 100%; overflow-y: auto; /* Example desktop styles */ }

/* --- Tablet Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: 2.8em;
  }

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

  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-tin-tuc__news-card-title {
    font-size: 1.2em;
  }

  .page-tin-tuc__hero-image-wrapper {
    max-height: 400px;
  }

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

  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin: 0 auto;
  }
}

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

  .page-tin-tuc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 1. Top carousel (placeholder, not in HTML) */
  .page-tin-tuc__hero-carousel-section { /* Not used on tin-tuc.html, but required for CSS output consistency */
    padding-top: 10px !important;
  }
  .page-tin-tuc__hero-slider { /* Not used on tin-tuc.html */ }
  .page-tin-tuc__hero-slide { /* Not used on tin-tuc.html */ }

  /* 2. Operation guide box + five team vertical cards (placeholder, not in HTML) */
  .page-tin-tuc__guide-box { /* Not used on tin-tuc.html */
    padding: 10px !important;
  }
  .page-tin-tuc__guide-grid { /* Not used on tin-tuc.html */
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
  }
  .page-tin-tuc__guide-card { /* Not used on tin-tuc.html */
    padding-top: 0 !important; /* Reset desktop offset */
  }
  .page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-2 { /* Not used on tin-tuc.html */
    grid-column: span 3;
  }
  .page-tin-tuc__guide-card--pos-3, .page-tin-tuc__guide-card--pos-4, .page-tin-tuc__guide-card--pos-5 { /* Not used on tin-tuc.html */
    grid-column: span 2;
  }
  .page-tin-tuc__guide-card img { /* Not used on tin-tuc.html */
    aspect-ratio: 250/350;
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  /* 3. home_content outer frame (placeholder, not in HTML) */
  .page-tin-tuc__home-content-box { /* Not used on tin-tuc.html */
    max-width: 100% !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    padding: 10px !important;
  }
  .page-tin-tuc__home-content-inner { /* Not used on tin-tuc.html */
    height: auto !important;
    overflow: visible !important;
  }

  /* 4. Blog card area (actual news grid) */
  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-tin-tuc__hero-image-wrapper {
    max-height: 250px;
  }

  .page-tin-tuc__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }

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

  .page-tin-tuc__section-title {
    font-size: 1.8em;
    padding-top: 20px;
  }

  .page-tin-tuc__section-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-tin-tuc__news-card-title {
    font-size: 1.2em;
  }

  .page-tin-tuc__feature-content {
    font-size: 1em;
  }

  .page-tin-tuc__sub-title {
    font-size: 1.5em;
  }

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

  /* 5. General images and buttons */
  .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,
  .page-tin-tuc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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-left: 15px;
    padding-right: 15px;
  }

  .page-tin-tuc__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}