/* style/tin-tuc.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-dark: #1a1a1a;
  --border-color: #e0e0e0;
}

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

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

/* Hero Banner */
.page-tin-tuc-hero-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #330066 100%); /* Dark blue to darker purple-blue */
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-tin-tuc-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,215,0,0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  opacity: 0.5;
  z-index: 0;
}

.page-tin-tuc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-tin-tuc-hero-content p {
  font-size: 1.2em;
  opacity: 0.9;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Main Content Area */
.page-tin-tuc-main-content {
  padding: 60px 0;
}

.page-tin-tuc-main-content .page-tin-tuc-container {
  display: flex;
  gap: 30px;
}

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

.page-tin-tuc-sidebar {
  flex: 1;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  height: fit-content;
}

/* Article Card */
.page-tin-tuc-article-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.page-tin-tuc-article-link {
  text-decoration: none;
  color: inherit;
  display: block;
  flex-grow: 1;
}

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

.page-tin-tuc-article-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-tin-tuc-article-info h3 {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.page-tin-tuc-article-info p {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-tin-tuc-read-more {
  color: var(--primary-color);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.page-tin-tuc-read-more .page-tin-tuc-arrow {
  margin-left: 5px;
  transition: transform 0.2s ease;
}

.page-tin-tuc-article-card:hover .page-tin-tuc-arrow {
  transform: translateX(5px);
}

/* Buttons */
.page-tin-tuc-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 0 20px 20px 20px;
}

.page-tin-tuc-btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-tin-tuc-btn-primary:hover {
  background-color: #ffc400;
  color: var(--secondary-color);
  border-color: #ffc400;
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.page-tin-tuc-btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-tin-tuc-btn-secondary:hover {
  background-color: #000066;
  color: var(--primary-color);
  border-color: #000066;
  box-shadow: 0 6px 15px rgba(0, 0, 128, 0.3);
}

/* Pagination */
.page-tin-tuc-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 10px;
}

.page-tin-tuc-page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.page-tin-tuc-page-link:hover:not(.page-tin-tuc-active) {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.page-tin-tuc-page-link.page-tin-tuc-active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  cursor: default;
}

.page-tin-tuc-page-link.page-tin-tuc-next {
  width: auto;
  border-radius: 20px;
  padding: 0 15px;
}

/* Sidebar Widgets */
.page-tin-tuc-widget {
  margin-bottom: 30px;
}

.page-tin-tuc-widget h2 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-tin-tuc-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-tin-tuc-widget ul li {
  margin-bottom: 10px;
}

.page-tin-tuc-widget ul li a {
  color: #555555;
  text-decoration: none;
  font-size: 1.05em;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.page-tin-tuc-widget ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.page-tin-tuc-cta-widget {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(145deg, var(--secondary-color), #330066);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc-cta-widget h3 {
  color: var(--primary-color);
  font-size: 2em;
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-tin-tuc-cta-widget p {
  color: #e0e0e0;
  font-size: 1em;
  margin-bottom: 25px;
  line-height: 1.7;
}

.page-tin-tuc-cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-tin-tuc-faq-section {
  background-color: #fcfcfc;
  padding: 60px 0;
}

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

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

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

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

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

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

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 20px 25px;
  border-top: 1px solid var(--border-color);
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-tin-tuc-main-content .page-tin-tuc-container {
    flex-direction: column;
  }
  .page-tin-tuc-articles {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-tin-tuc-sidebar {
    margin-top: 30px;
  }
  .page-tin-tuc-hero-content h1 {
    font-size: 2.5em;
  }
  .page-tin-tuc-hero-content p {
    font-size: 1em;
  }
  .page-tin-tuc-faq-section h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-tin-tuc-hero-banner {
    padding: 60px 0;
  }
  .page-tin-tuc-hero-content h1 {
    font-size: 2em;
  }
  .page-tin-tuc-hero-content p {
    font-size: 0.9em;
  }
  .page-tin-tuc-main-content {
    padding: 40px 0;
  }
  .page-tin-tuc-articles {
    grid-template-columns: 1fr;
  }
  .page-tin-tuc-article-image {
    height: 180px;
  }
  .page-tin-tuc-article-info h3 {
    font-size: 1.3em;
  }
  .page-tin-tuc-btn {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-tin-tuc-faq-section h2 {
    font-size: 1.8em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-tin-tuc-container {
    padding: 0 15px;
  }
  .page-tin-tuc-hero-content h1 {
    font-size: 1.8em;
  }
  .page-tin-tuc-hero-content p {
    font-size: 0.85em;
  }
  .page-tin-tuc-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
  .page-tin-tuc-page-link {
    width: 35px;
    height: 35px;
  }
  .page-tin-tuc-page-link.page-tin-tuc-next {
    padding: 0 10px;
  }
  .page-tin-tuc-widget h2 {
    font-size: 1.5em;
  }
}