/* 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 body background */
  background: #ffffff; /* Default body background is white */
}

/* Container for main content width */
.page-tin-tuc__container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: #26A9E0; /* Brand primary color for dark background */
  color: #ffffff; /* Light text for dark background */
  text-align: center;
}

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

.page-tin-tuc__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

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

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

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

.page-tin-tuc__btn-secondary:hover {
  background: #f0f0f0;
  color: #208ac2;
  border-color: #f0f0f0;
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding: 60px 0;
  background: #f5f5f5; /* Light background for content cards */
  color: #333333;
}

.page-tin-tuc__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

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

.page-tin-tuc__news-card {
  background: #ffffff;
  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;
}

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

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

.page-tin-tuc__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency, will be overridden by auto on mobile */
  object-fit: cover;
  display: block;
}

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

.page-tin-tuc__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
  line-height: 1.4;
}

.page-tin-tuc__card-title:hover {
  text-decoration: underline;
}

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

.page-tin-tuc__card-excerpt {
  font-size: 1rem;
  color: #555555;
}

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

/* About News Section */
.page-tin-tuc__about-news-section {
  padding: 60px 0;
  background: #26A9E0; /* Brand primary color for dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-tin-tuc__feature-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tin-tuc__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-tin-tuc__feature-description {
  font-size: 1rem;
  color: #f0f0f0;
}

/* Subscribe Section (Contact Form) */
.page-tin-tuc__subscribe-section {
  padding: 60px 0;
  background: #f0f8ff; /* A slightly lighter blue tint for background */
  color: #333333;
  text-align: center;
}

.page-tin-tuc__subscribe-form {
  max-width: 600px;
  margin: 30px auto 20px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-tin-tuc__form-input,
.page-tin-tuc__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-tin-tuc__form-textarea {
  min-height: 120px;
  resize: vertical;
}

.page-tin-tuc__form-input::placeholder,
.page-tin-tuc__form-textarea::placeholder {
  color: #999999;
}

.page-tin-tuc__form-note {
  font-size: 0.9rem;
  color: #666666;
}

/* --- Responsive Styles --- */

/* Mobile specific styles for all required blocks */
@media (max-width: 768px) {
  /* 1. Top section title + dual CTA */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for smaller screens */
    margin-bottom: 15px;
  }

  .page-tin-tuc__description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 15px; /* Add padding to description */
  }

  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button container */
  }

  /* 4. Buttons and button containers (general application) */
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary,
  .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,
  .page-tin-tuc__button-group,
  .page-tin-tuc__view-all-button-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Ensure buttons wrap if horizontal */
    gap: 10px;
  }

  /* 2. Single column long text container & info/promo cards */
  .page-tin-tuc__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-tin-tuc__news-list-section,
  .page-tin-tuc__about-news-section,
  .page-tin-tuc__subscribe-section {
    padding: 40px 0;
  }

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

  .page-tin-tuc__news-grid {
    grid-template-columns: 1fr; /* Single column for news cards */
    gap: 20px;
  }

  .page-tin-tuc__card-image {
    height: 200px; /* Adjust image height for mobile cards */
  }

  .page-tin-tuc__card-title {
    font-size: 1.2rem;
  }

  .page-tin-tuc__feature-item {
    padding: 20px;
  }

  .page-tin-tuc__feature-title {
    font-size: 1.3rem;
  }

  .page-tin-tuc__subscribe-form {
    padding: 0 15px;
  }

  /* 3. General images and figure (all images) */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-tin-tuc__news-card,
  .page-tin-tuc__feature-item,
  .page-tin-tuc__subscribe-section,
  .page-tin-tuc__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-tin-tuc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 5. Registration tutorial and FAQ blocks - Ensuring general text readability */
  .page-tin-tuc p,
  .page-tin-tuc li,
  .page-tin-tuc__form-note {
    font-size: 15px;
    line-height: 1.5;
  }
}