/* style/tin-tuc.css */

/* General page styling */
.page-tin-tuc {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color on body background */
  background-color: #B71C1C; /* Background color from custom palette */
}

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

/* Hero Section (Title and Intro) */
.page-tin-tuc__hero-section {
  padding-top: 10px; /* Adhering to fixed header rule */
  padding-bottom: 40px;
  text-align: center;
}

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

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

.page-tin-tuc__description {
  font-size: 1.1rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
}

.page-tin-tuc__inline-link {
  color: #FFD86A; /* Gold-like for emphasis */
  text-decoration: underline;
}

/* Call to Action Buttons */
.page-tin-tuc__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-tin-tuc__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for contrast on gold */
  border: 2px solid #F2B544; /* Border Gold */
}

.page-tin-tuc__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  color: #FFF5E1;
}

.page-tin-tuc__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border Gold */
}

.page-tin-tuc__btn-secondary:hover {
  background: #F2B544; /* Border Gold */
  color: #7A0E0E; /* Deep Red */
}

/* News List Section */
.page-tin-tuc__news-list-section {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #D32F2F; /* Card BG color */
}

.page-tin-tuc__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-tin-tuc__news-card {
  background-color: #7A0E0E; /* Deep Red for card background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover {
  transform: translateY(-5px);
}

.page-tin-tuc__news-card-media {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  overflow: hidden;
}

.page-tin-tuc__news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.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.9rem;
  color: #FFCC66; /* Glow color */
  margin-bottom: 10px;
}

.page-tin-tuc__news-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-tin-tuc__news-card-title a {
  color: #FFF5E1; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-card-title a:hover {
  color: #FFD86A; /* Gold */
}

.page-tin-tuc__news-card-excerpt {
  font-size: 1rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-tin-tuc__news-card-link {
  display: inline-block;
  color: #FFD86A; /* Gold */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-tin-tuc__news-card-link:hover {
  color: #FFF5E1; /* Text Main */
}

.page-tin-tuc__all-news-cta {
  text-align: center;
  margin-top: 40px;
}

/* CTA Banner Section */
.page-tin-tuc__cta-banner-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
  text-align: center;
}

.page-tin-tuc__cta-banner-content {
  max-width: 900px;
}

.page-tin-tuc__cta-banner-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
}

.page-tin-tuc__cta-banner-text {
  font-size: 1.2rem;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
}

/* --- Responsive Styles --- */
/* @media (max-width: 1024px) for general tablet/smaller desktop adjustments */
@media (max-width: 1024px) {
  .page-tin-tuc__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-tin-tuc__cta-banner-title {
    font-size: 2.5rem;
  }

  .page-tin-tuc__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* @media (max-width: 768px) for mobile devices */
@media (max-width: 768px) {
  /* Fixed header spacing (only for first section) */
  .page-tin-tuc__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }

  /* HERO section adjustments (no dual column, so general content adjustments) */
  .page-tin-tuc__hero-content {
    padding: 0 15px;
  }
  .page-tin-tuc__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
    max-width: 100%;
  }
  .page-tin-tuc__description {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Call to Action Buttons (mobile) */
  .page-tin-tuc__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    gap: 15px;
    padding: 0 15px !important; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-tin-tuc__btn-primary,
  .page-tin-tuc__btn-secondary {
    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;
    text-align: center;
  }

  /* News List Section (mobile) */
  .page-tin-tuc__news-list-section .page-tin-tuc__container,
  .page-tin-tuc__cta-banner-section .page-tin-tuc__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

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

  .page-tin-tuc__news-card-media {
    height: 180px; /* Slightly smaller fixed height for mobile cards */
  }
  .page-tin-tuc__news-card-title {
    font-size: 1.2rem;
  }
  .page-tin-tuc__news-card-excerpt {
    font-size: 0.95rem;
  }

  /* CTA Banner Section (mobile) */
  .page-tin-tuc__cta-banner-title {
    font-size: 2rem;
    padding: 0 10px;
  }
  .page-tin-tuc__cta-banner-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Universal Image Responsiveness for content area */
  .page-tin-tuc img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure image takes full width of parent */
    height: auto !important;
    display: block;
  }

  /* Containers for images and content */
  .page-tin-tuc__news-card-media,
  .page-tin-tuc__news-card-content,
  .page-tin-tuc__all-news-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  
  /* Explicitly address general content sections for mobile padding and width */
  .page-tin-tuc__hero-section,
  .page-tin-tuc__news-list-section,
  .page-tin-tuc__cta-banner-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Module 1 (Icon Box Media) - Not applicable for this non-homepage type */
  /* Seven Tab Game Section - Not applicable for this non-homepage type */
  /* Tutorial/Promo/Trust/FAQ/Blog layout - General content section rules apply */
}