/* style/tin-tuc-latest-updates.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --bg-dark: #333333;
  --bg-light: #f5f5f5;
  --border-color: #e0e0e0;
}

.page-tin-tuc-latest-updates {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

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

.page-tin-tuc-latest-updates__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  position: relative;
}

.page-tin-tuc-latest-updates__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Hero Section */
.page-tin-tuc-latest-updates__hero-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #000000 100%);
  color: var(--text-light);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-tin-tuc-latest-updates__hero-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.page-tin-tuc-latest-updates__hero-content h1 {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tuc-latest-updates__hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-tin-tuc-latest-updates__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-tin-tuc-latest-updates__cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-tin-tuc-latest-updates__intro-section {
  background: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-tin-tuc-latest-updates__intro-section p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-dark);
}

/* Announcement Categories */
.page-tin-tuc-latest-updates__announcement-categories {
  background: var(--bg-dark);
  padding: 80px 0;
  color: var(--text-light);
}

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

.page-tin-tuc-latest-updates__category-item {
  background: #444444;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc-latest-updates__category-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc-latest-updates__category-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px solid var(--primary-color);
}

.page-tin-tuc-latest-updates__category-item h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-tin-tuc-latest-updates__category-item h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc-latest-updates__category-item h3 a:hover {
  color: var(--secondary-color);
}

.page-tin-tuc-latest-updates__category-item p {
  font-size: 1em;
  color: #cccccc;
}

/* Latest Announcements */
.page-tin-tuc-latest-updates__latest-announcements {
  background: var(--bg-light);
  padding: 80px 0;
}

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

.page-tin-tuc-latest-updates__announcement-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-tin-tuc-latest-updates__card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--primary-color);
}

.page-tin-tuc-latest-updates__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc-latest-updates__card-content h3 {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-tin-tuc-latest-updates__card-content h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tuc-latest-updates__card-content h3 a:hover {
  color: var(--primary-color);
}

.page-tin-tuc-latest-updates__card-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-tin-tuc-latest-updates__card-content p {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-tin-tuc-latest-updates__read-more {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-tin-tuc-latest-updates__read-more:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-tin-tuc-latest-updates__view-all {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-tin-tuc-latest-updates__faq-section {
  background: var(--bg-dark);
  padding: 80px 0;
  color: var(--text-light);
}

.page-tin-tuc-latest-updates__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #444444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-item.active .faq-question {
  border-radius: 8px 8px 0 0;
}

.faq-question:hover {
  background: darken(var(--secondary-color), 10%); /* Adjust for better hover */
}

.faq-question h3 {
  margin: 0;
  font-size: 1.3em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #444444;
  color: #cccccc;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 25px;
}

.faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* CTA Bottom Section */
.page-tin-tuc-latest-updates__cta-bottom {
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
  padding: 60px 0;
  text-align: center;
  color: var(--text-light);
}

.page-tin-tuc-latest-updates__cta-bottom h2 {
  font-size: 2.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-tin-tuc-latest-updates__cta-bottom p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tin-tuc-latest-updates__hero-content h1 {
    font-size: 3em;
  }
  .page-tin-tuc-latest-updates__section-title {
    font-size: 2em;
  }
  .page-tin-tuc-latest-updates__category-grid,
  .page-tin-tuc-latest-updates__announcement-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-tin-tuc-latest-updates__hero-section {
    padding: 60px 15px;
  }
  .page-tin-tuc-latest-updates__hero-content h1 {
    font-size: 2.5em;
  }
  .page-tin-tuc-latest-updates__hero-content p {
    font-size: 1em;
  }
  .page-tin-tuc-latest-updates__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-tin-tuc-latest-updates__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-tin-tuc-latest-updates__intro-section,
  .page-tin-tuc-latest-updates__announcement-categories,
  .page-tin-tuc-latest-updates__latest-announcements,
  .page-tin-tuc-latest-updates__faq-section,
  .page-tin-tuc-latest-updates__cta-bottom {
    padding: 40px 0;
  }
  .page-tin-tuc-latest-updates__category-item h3 {
    font-size: 1.5em;
  }
  .page-tin-tuc-latest-updates__card-content h3 {
    font-size: 1.4em;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-answer {
    padding: 15px 20px;
  }
  .page-tin-tuc-latest-updates__cta-bottom h2 {
    font-size: 2em;
  }
  .page-tin-tuc-latest-updates__cta-bottom p {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-tin-tuc-latest-updates__hero-content h1 {
    font-size: 2em;
  }
  .page-tin-tuc-latest-updates__section-title {
    font-size: 1.5em;
  }
  .page-tin-tuc-latest-updates__category-grid,
  .page-tin-tuc-latest-updates__announcement-list {
    grid-template-columns: 1fr;
  }
  .page-tin-tuc-latest-updates__category-img {
    height: 180px;
  }
  .page-tin-tuc-latest-updates__card-img {
    height: 180px;
  }
  .page-tin-tuc-latest-updates__cta-bottom h2 {
    font-size: 1.8em;
  }
}