/* style/tin-tuc.css */
:root {
  --primary-color: #CC0000;
  --secondary-color: #003366;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f4f4f4;
  --bg-dark: #002244;
  --accent-color: #FFD700; /* Gold for accent */
}

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

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

.page-tin-tuc h1, .page-tin-tuc h2, .page-tin-tuc h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-tin-tuc h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page-tin-tuc h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-tin-tuc h3 {
  font-size: 1.6em;
  color: var(--secondary-color);
}

.page-tin-tuc p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-tin-tuc a {
  text-decoration: none;
  color: var(--primary-color);
}

.page-tin-tuc a:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

/* Hero News Section */
.page-tin-tuc .hero-news-section {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-tin-tuc .hero-news-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-tin-tuc .hero-news-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-tin-tuc .hero-news-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc .hero-news-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-tin-tuc .hero-news-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tuc .hero-news-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-tin-tuc .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc .cta-button:hover {
  background: #FFC107;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: var(--secondary-color);
  text-decoration: none;
}

/* Featured News Section */
.page-tin-tuc .featured-news-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-tin-tuc .featured-news-section h2 {
  color: var(--secondary-color);
}

.page-tin-tuc .featured-news-section p {
  text-align: center;
  margin-bottom: 40px;
}

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

.page-tin-tuc .news-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-tin-tuc .news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-tin-tuc .news-card h3 {
  padding: 15px 20px 10px;
  font-size: 1.3em;
}

.page-tin-tuc .news-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-tin-tuc .news-card h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-tin-tuc .news-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-tin-tuc .read-more {
  display: inline-block;
  padding: 10px 20px 20px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-tin-tuc .read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Categories Section */
.page-tin-tuc .categories-section {
  background-color: var(--bg-dark);
  padding: 60px 0;
  text-align: center;
}

.page-tin-tuc .categories-section h2 {
  color: var(--text-light);
}

.page-tin-tuc .categories-section p {
  color: #cccccc;
  margin-bottom: 40px;
}

.page-tin-tuc .category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-tin-tuc .category-item {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-tin-tuc .category-item:hover {
  background-color: var(--accent-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Latest News Section */
.page-tin-tuc .latest-news-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-tin-tuc .latest-news-section h2 {
  color: var(--secondary-color);
}

.page-tin-tuc .latest-news-section p {
  text-align: center;
  margin-bottom: 40px;
}

.page-tin-tuc .news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-tin-tuc .news-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc .news-item a {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  text-decoration: none;
  color: var(--text-dark);
}

.page-tin-tuc .news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-tin-tuc .news-item img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 8px 0 0 8px;
}

.page-tin-tuc .news-item .item-content {
  padding: 20px;
  flex-grow: 1;
}

.page-tin-tuc .news-item h3 {
  font-size: 1.4em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-tin-tuc .news-item h3 a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-tin-tuc .news-item h3 a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-tin-tuc .news-item p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 10px;
}

.page-tin-tuc .news-item span {
  font-size: 0.85em;
  color: #888888;
}

.page-tin-tuc .pagination {
  margin-top: 40px;
  text-align: center;
}

.page-tin-tuc .page-link {
  display: inline-block;
  padding: 10px 15px;
  margin: 0 5px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-tin-tuc .page-link.active,
.page-tin-tuc .page-link:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
}

/* CTA Section */
.page-tin-tuc .cta-section {
  background-color: var(--secondary-color);
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
}

.page-tin-tuc .cta-section img {
  max-width: 80%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc .cta-section h2 {
  color: var(--accent-color);
  font-size: 2.5em;
  margin-bottom: 20px;
}

.page-tin-tuc .cta-section p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-tin-tuc .faq-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-tin-tuc .faq-section h2 {
  color: var(--secondary-color);
}

.page-tin-tuc .faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background-color: #ffffff;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  color: var(--text-dark);
  font-size: 0.95em;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border-top: 1px solid #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tin-tuc .hero-news-content h1 {
    font-size: 2.5em;
  }
  .page-tin-tuc .news-item a {
    flex-direction: column;
  }
  .page-tin-tuc .news-item img {
    width: 100%;
    height: 250px;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc .hero-news-section,
  .page-tin-tuc .featured-news-section,
  .page-tin-tuc .categories-section,
  .page-tin-tuc .latest-news-section,
  .page-tin-tuc .cta-section,
  .page-tin-tuc .faq-section {
    padding: 40px 15px;
  }

  .page-tin-tuc h1 {
    font-size: 2em;
  }

  .page-tin-tuc h2 {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 25px;
  }

  .page-tin-tuc h3 {
    font-size: 1.3em;
  }

  .page-tin-tuc .hero-news-content p {
    font-size: 1em;
  }

  .page-tin-tuc .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-tin-tuc .featured-news-grid {
    grid-template-columns: 1fr;
  }

  .page-tin-tuc .category-list {
    flex-direction: column;
    align-items: center;
  }

  .page-tin-tuc .news-item img {
    height: 200px;
  }

  .page-tin-tuc .news-item .item-content {
    padding: 15px;
  }

  .page-tin-tuc .cta-section h2 {
    font-size: 2em;
  }

  .page-tin-tuc .cta-section p {
    font-size: 1em;
  }

  .faq-question {
    padding: 12px;
  }

  .faq-question h3 {
    font-size: 1em;
  }
  
  .faq-toggle {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .page-tin-tuc h1 {
    font-size: 1.8em;
  }
  .page-tin-tuc .hero-news-image img {
    border-radius: 4px;
  }
  .page-tin-tuc .cta-section img {
    max-width: 95%;
  }
}