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

.page-tin-tuc__hero-carousel-section {
  padding-top: 10px; /* Small top padding, body handles main offset */
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-tin-tuc__hero-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__hero-slide {
  display: none;
  position: relative;
}

.page-tin-tuc__hero-slide.is-active {
  display: block;
}

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

.page-tin-tuc__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  padding: 20px;
  color: #ffffff;
}

.page-tin-tuc__hero-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
  max-width: 90%;
  color: #ffffff;
}

.page-tin-tuc__hero-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 80%;
  color: #f0f0f0;
}

.page-tin-tuc__hero-buttons {
  display: flex;
  gap: 15px;
}

.page-tin-tuc__hero-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.page-tin-tuc__hero-slider-prev,
.page-tin-tuc__hero-slider-next {
  background: rgba(38, 169, 224, 0.7);
  border: none;
  color: #ffffff;
  font-size: 1.5em;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.page-tin-tuc__hero-slider-prev:hover,
.page-tin-tuc__hero-slider-next:hover {
  background: #26A9E0;
}

.page-tin-tuc__hero-slider-prev::before {
  content: '‹';
}

.page-tin-tuc__hero-slider-next::before {
  content: '›';
}

.page-tin-tuc__guide-box {
  padding: 40px 20px 50px;
  background: #f8f8f8;
  border-radius: 8px;
  margin: 0 auto 40px;
  max-width: 1200px;
  text-align: center;
}

.page-tin-tuc__guide-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tin-tuc__guide-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-tin-tuc__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row */
  max-width: calc(20% - 12px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-tin-tuc__guide-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: cover;
  border-radius: 8px;
}

.page-tin-tuc__guide-card--pos-1,
.page-tin-tuc__guide-card--pos-5 {
  padding-top: 50px;
}

.page-tin-tuc__guide-card--pos-2,
.page-tin-tuc__guide-card--pos-4 {
  padding-top: 25px;
}

.page-tin-tuc__home-content-box {
  max-width: 91%;
  margin: 0 auto 40px;
  padding: 20px 30px;
  border: 5px solid #26A9E0; /* Using primary color for border */
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(38, 169, 224, 0.5);
  height: 700px;
  background: #000000; /* Dark background for this section */
  color: #ffffff;
}

.page-tin-tuc__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar space */
}

.page-tin-tuc__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-tin-tuc__home-content-inner::-webkit-scrollbar-track {
  background: #555;
  border-radius: 10px;
}

.page-tin-tuc__home-content-inner::-webkit-scrollbar-thumb {
  background: #26A9E0;
  border-radius: 10px;
}

.page-tin-tuc__main-title {
  font-size: 2.5em;
  color: #ffffff;
  margin-bottom: 25px;
  text-align: center;
}

.page-tin-tuc__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-tin-tuc__home-content-box p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #f0f0f0;
}

.page-tin-tuc__home-content-box p strong {
  color: #ffffff;
}

.page-tin-tuc__home-content-box a {
  color: #ffffff;
  text-decoration: underline;
}

.page-tin-tuc__home-content-box a:hover {
  color: #26A9E0;
}

.page-tin-tuc__blog-section {
  padding: 50px 20px;
  background: #ffffff;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.page-tin-tuc__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tin-tuc__section-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.page-tin-tuc__blog-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-tin-tuc__blog-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

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

.page-tin-tuc__blog-card-title {
  font-size: 1.4em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-tin-tuc__blog-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-tin-tuc__blog-card-excerpt {
  font-size: 1em;
  color: #555555;
}

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

.page-tin-tuc__cta-section {
  background: #26A9E0; /* Primary brand color background */
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
  margin-bottom: 0;
}

.page-tin-tuc__cta-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tin-tuc__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

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

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-tin-tuc__btn-primary {
  background: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-tin-tuc__btn-primary:hover {
  background: #d66f06;
  border-color: #d66f06;
}

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

.page-tin-tuc__btn-secondary:hover {
  background: #e0e0e0;
  color: #1a87b3;
  border-color: #1a87b3;
}

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

/* Media Queries for responsiveness */
@media (max-width: 1024px) {
  .page-tin-tuc__hero-title {
    font-size: 2em;
  }
  .page-tin-tuc__hero-description {
    font-size: 1em;
    max-width: 90%;
  }
  .page-tin-tuc__guide-card {
    flex: 0 0 calc(33.333% - 10px); /* 3 cards per row */
    max-width: calc(33.333% - 10px);
  }
  .page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-5 {
    padding-top: 0;
  }
  .page-tin-tuc__guide-card--pos-2, .page-tin-tuc__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-tin-tuc__guide-grid {
    gap: 10px;
  }
  .page-tin-tuc__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-tin-tuc__home-content-box {
    max-width: 95%;
    height: 600px;
  }
  .page-tin-tuc__main-title {
    font-size: 2em;
  }
  .page-tin-tuc__sub-title {
    font-size: 1.5em;
  }
  .page-tin-tuc__cta-title {
    font-size: 2.2em;
  }
  .page-tin-tuc__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc {
    font-size: 16px;
    line-height: 1.6;
  }
  /* 顶区轮播 */
  .page-tin-tuc__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }
  .page-tin-tuc__hero-slider {
    border-radius: 0;
    box-shadow: none;
  }
  .page-tin-tuc__hero-content {
    padding: 15px;
    position: static;
    background: #000000;
    text-align: center;
  }
  .page-tin-tuc__hero-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    max-width: 100%;
  }
  .page-tin-tuc__hero-description {
    font-size: 0.9em;
    margin-bottom: 15px;
    max-width: 100%;
  }
  .page-tin-tuc__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-tin-tuc__hero-slider-nav {
    display: none; /* Hide navigation buttons on small screens */
  }
  /* 操作指引外框 + 五张 `team` 竖型卡 */
  .page-tin-tuc__guide-box {
    padding: 20px 15px 30px;
    margin-bottom: 20px;
    border-radius: 0;
  }
  .page-tin-tuc__guide-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-tin-tuc__guide-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tin-tuc__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Base grid for flexible span */
    gap: 10px;
  }
  .page-tin-tuc__guide-card {
    padding-top: 0 !important; /* Reset specific top padding for mobile */
    flex: auto; /* Allow flex items to adjust */
    max-width: 100%; /* Reset max-width */
    border-radius: 4px;
  }
  .page-tin-tuc__guide-card--pos-1, .page-tin-tuc__guide-card--pos-2 {
    grid-column: span 3; /* First two cards take half width each */
  }
  .page-tin-tuc__guide-card--pos-3, .page-tin-tuc__guide-card--pos-4, .page-tin-tuc__guide-card--pos-5 {
    grid-column: span 2; /* Remaining three cards take one-third width each */
  }
  .page-tin-tuc__guide-card img {
    border-radius: 4px;
  }
  /* `home_content` 外框 */
  .page-tin-tuc__home-content-box {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 0;
    padding: 15px;
    box-shadow: none;
  }
  .page-tin-tuc__home-content-inner {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }
  .page-tin-tuc__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-tin-tuc__sub-title {
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .page-tin-tuc__home-content-box p {
    font-size: 0.95em;
    margin-bottom: 10px;
  }
  /* 博客卡片区 */
  .page-tin-tuc__blog-section {
    padding: 30px 15px;
    margin-bottom: 20px;
  }
  .page-tin-tuc__section-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }
  .page-tin-tuc__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tin-tuc__blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
  }
  .page-tin-tuc__blog-card-content {
    padding: 15px;
  }
  .page-tin-tuc__blog-card-title {
    font-size: 1.2em;
  }
  .page-tin-tuc__blog-card-excerpt {
    font-size: 0.95em;
  }
  /* 通用图片与按钮 */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-tin-tuc__cta-section {
    padding: 40px 15px;
  }
  .page-tin-tuc__cta-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-tin-tuc__cta-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-tin-tuc__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-tin-tuc__cta-buttons,
  .page-tin-tuc__button-group,
  .page-tin-tuc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .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;
  }
}