/* style/tin-tuc.css */

/* Base styles for the page-tin-tuc content */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Explicitly set for clarity, though body handles it */
}

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

/* Section titles */
.page-tin-tuc__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

/* 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: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-tin-tuc__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #26A9E0;
}

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

.page-tin-tuc__btn-secondary {
  background-color: #ffffff; /* Auxiliary color */
  color: #26A9E0; /* Main brand color for text */
  border: 2px solid #26A9E0;
}

.page-tin-tuc__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bb0;
}

.page-tin-tuc__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container fills width */
  max-width: 100%; /* Ensure container fills width */
  box-sizing: border-box;
  overflow: hidden;
}

/* Image base styles */
.page-tin-tuc img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove extra space below images */
}

/* Color contrast classes */
.page-tin-tuc__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-tin-tuc__dark-bg .page-tin-tuc__section-title,
.page-tin-tuc__dark-bg .page-tin-tuc__sub-title {
  color: #ffffff; /* Ensure white titles on dark background */
}
.page-tin-tuc__dark-bg .page-tin-tuc__lead-text,
.page-tin-tuc__dark-bg p {
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-tin-tuc__light-bg {
  background-color: #ffffff;
  color: #333333;
}
.page-tin-tuc__light-bg .page-tin-tuc__section-title,
.page-tin-tuc__light-bg .page-tin-tuc__sub-title {
  color: #26A9E0; /* Brand color for titles on light background */
}
.page-tin-tuc__light-bg .page-tin-tuc__lead-text,
.page-tin-tuc__light-bg p {
  color: #555555;
}


/* Hero Section */
.page-tin-tuc__hero-section {
  position: relative;
  overflow: hidden;
  padding: 10px 0 60px; /* Small top padding, larger bottom for content */
  text-align: center;
}

.page-tin-tuc__hero-image-container {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-tin-tuc__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  min-height: 200px; /* Minimum height for all images */
}

.page-tin-tuc__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-tin-tuc__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff; /* White text on dark hero section */
}


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

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

.page-tin-tuc__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards are same height */
  color: #333333; /* Default text color for cards */
}

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

.page-tin-tuc__news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-tin-tuc__news-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card images */
  object-fit: cover;
  min-height: 200px; /* Minimum height for all images */
}

.page-tin-tuc__news-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to grow and fill space */
  display: flex;
  flex-direction: column;
}

.page-tin-tuc__news-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0; /* Brand color for card titles */
  line-height: 1.3;
}

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

.page-tin-tuc__news-card-excerpt {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow excerpt to grow */
}

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


/* About News Section */
.page-tin-tuc__about-news-section {
  padding: 60px 0;
}

.page-tin-tuc__about-news-section .page-tin-tuc__section-title {
  margin-bottom: 40px;
}

.page-tin-tuc__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-tin-tuc__text-block {
  flex: 1;
}

.page-tin-tuc__text-block p {
  margin-bottom: 15px;
  text-align: justify;
}

.page-tin-tuc__image-block {
  flex: 0 0 40%; /* Fixed width for image block */
  max-width: 40%;
}

.page-tin-tuc__content-image {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-height: 200px; /* Minimum height for all images */
}

.page-tin-tuc__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-top: 20px;
}

.page-tin-tuc__list li {
  margin-bottom: 10px;
}


/* FAQ Section */
.page-tin-tuc__faq-section {
  padding: 60px 0;
}

.page-tin-tuc__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-tin-tuc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6fc; /* Lighter brand color for summary */
  border-bottom: 1px solid #e0e0e0;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-tin-tuc__faq-item[open] .page-tin-tuc__faq-question .page-tin-tuc__faq-toggle::before {
  content: '-';
}

.page-tin-tuc__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-tin-tuc__faq-toggle::before {
  content: '+';
}

.page-tin-tuc__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 0;
  background-color: #ffffff;
}

.page-tin-tuc__faq-answer p {
  margin-bottom: 0;
  text-align: justify;
}

/* Hide default details marker */
.page-tin-tuc__faq-item > summary {
  list-style: none;
}
.page-tin-tuc__faq-item > summary::-webkit-details-marker {
  display: none;
}


/* CTA Bottom Section */
.page-tin-tuc__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__section-title {
  margin-bottom: 20px;
  color: #ffffff;
}

.page-tin-tuc__cta-bottom-section .page-tin-tuc__lead-text {
  color: #f0f0f0;
  margin-bottom: 40px;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-tin-tuc__container {
    padding: 20px 30px;
  }

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

  .page-tin-tuc__content-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .page-tin-tuc__image-block {
    max-width: 60%;
    flex: 0 0 60%;
  }

  .page-tin-tuc__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
}

@media (max-width: 768px) {
  /* General page padding for mobile */
  .page-tin-tuc__container {
    padding: 15px !important; /* Force padding for content areas */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Small top padding as per rule */
    padding-bottom: 40px;
  }

  .page-tin-tuc__hero-image-container {
    max-height: 300px; /* Adjust hero image height for mobile */
    margin-bottom: 20px;
  }

  .page-tin-tuc__hero-image {
    min-height: 200px !important; /* Minimum image size */
  }

  .page-tin-tuc__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-tin-tuc__lead-text {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 10px;
  }

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

  /* Buttons general mobile styles */
  .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;
  }

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

  .page-tin-tuc__section-title {
    font-size: 2em;
    padding: 0 10px;
  }

  .page-tin-tuc__section-description {
    font-size: 1em;
    padding: 0 10px;
  }

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

  .page-tin-tuc__news-card-image {
    height: 180px; /* Adjust card image height for mobile */
    min-height: 200px !important; /* Minimum image size */
  }

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

  /* About News Section */
  .page-tin-tuc__about-news-section {
    padding: 40px 0;
  }

  .page-tin-tuc__content-wrapper {
    flex-direction: column; /* Stack image and text vertically */
    gap: 20px;
  }

  .page-tin-tuc__image-block {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .page-tin-tuc__content-image {
    min-height: 200px !important; /* Minimum image size */
  }

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

  .page-tin-tuc__list {
    margin-left: 0;
    padding-left: 20px;
  }

  /* FAQ Section */
  .page-tin-tuc__faq-section {
    padding: 40px 0;
  }

  .page-tin-tuc__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-tin-tuc__faq-answer {
    padding: 12px 20px;
  }

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

  /* Universal image responsive styles for mobile */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}