/* style/tintc.css */
.page-tintc {
  background-color: #08160F; /* Nền tối theo tùy chỉnh */
  color: #F2FFF6; /* Chữ sáng cho nền tối */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-tintc__section-spacing {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-tintc__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ gọn, body đã có padding-top */
  padding-bottom: 60px;
  text-align: center;
}

.page-tintc__hero-image-wrapper {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-tintc__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-tintc__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-tintc__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2C14E; /* Màu vàng Gold cho tiêu đề chính */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-tintc__hero-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

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

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-tintc__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

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

.page-tintc__btn-secondary {
  background: transparent;
  color: #F2FFF6;
  border: 2px solid #2E7A4E;
}

.page-tintc__btn-secondary:hover {
  background-color: #1E3A2A;
  transform: translateY(-2px);
}

.page-tintc__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-tintc__section-description {
  font-size: 1rem;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-tintc__news-card,
.page-tintc__insight-card {
  background-color: #11271B; /* Màu nền Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__news-card:hover,
.page-tintc__insight-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-tintc__card-content {
  padding: 25px;
}

.page-tintc__card-title {
  font-size: 1.3rem;
  color: #F2FFF6;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
}

.page-tintc__card-excerpt {
  font-size: 0.95rem;
  color: #A7D9B8;
  margin-bottom: 15px;
}

.page-tintc__card-date {
  font-size: 0.85rem;
  color: #57E38D;
  display: block;
}

.page-tintc__view-all {
  text-align: center;
  margin-top: 50px;
}

.page-tintc__promo-list,
.page-tintc__security-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
}

.page-tintc__promo-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1rem;
  color: #F2FFF6;
  border-left: 5px solid #2AD16F;
}

.page-tintc__security-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-tintc__security-item {
  background-color: #11271B;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: #A7D9B8;
  border: 1px solid #2E7A4E;
}

.page-tintc__security-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-tintc__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-tintc__faq-item {
  background-color: #11271B;
  border: 1px solid #1E3A2A;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-tintc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: #F2FFF6;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
  position: relative;
  list-style: none;
}

.page-tintc__faq-question::-webkit-details-marker {
  display: none;
}

.page-tintc__faq-qtext {
  flex-grow: 1;
}

.page-tintc__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D;
}

.page-tintc__faq-answer {
  padding: 0 20px 20px 20px;
  color: #A7D9B8;
  font-size: 1rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-tintc__faq-item[open] .page-tintc__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
  content: '−';
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-tintc__section-spacing {
    padding: 40px 15px;
  }

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

  .page-tintc__main-title {
    font-size: 2.2rem;
  }

  .page-tintc__hero-description {
    font-size: 1rem;
  }

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

  .page-tintc__btn-primary,
  .page-tintc__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-tintc__section-title {
    font-size: 1.8rem;
  }

  .page-tintc__section-description {
    font-size: 0.95rem;
  }

  .page-tintc__news-grid,
  .page-tintc__insights-grid {
    grid-template-columns: 1fr;
  }

  .page-tintc__card-image {
    height: 180px;
  }

  .page-tintc__card-title {
    font-size: 1.1rem;
  }

  .page-tintc__card-excerpt {
    font-size: 0.9rem;
  }

  .page-tintc__promo-item,
  .page-tintc__security-item {
    font-size: 0.95rem;
    padding: 15px;
  }

  .page-tintc__security-icon {
    width: 50px;
    height: 50px;
  }

  .page-tintc__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  /* Mobile responsive image styles */
  .page-tintc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-tintc__section,
  .page-tintc__card,
  .page-tintc__container,
  .page-tintc__hero-image-wrapper,
  .page-tintc__news-grid,
  .page-tintc__insights-grid,
  .page-tintc__promo-list,
  .page-tintc__security-list,
  .page-tintc__faq-list,
  .page-tintc__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-tintc__hero-section {
    padding-top: 10px !important;
  }

  /* If buttons are grouped horizontally */
  .page-tintc__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}