/* style/tin-tuc.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Dodger Blue */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f7f6;
    --bg-dark: #1a1a1a;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

.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-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-tin-tuc-hero p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

.page-tin-tuc-btn-primary {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc-btn-primary:hover {
    background-color: #1a7ad9; /* Slightly darker secondary */
    transform: translateY(-3px);
}

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

.page-tin-tuc-section:nth-of-type(even) {
    background-color: #e9ecef; /* Slightly different background for visual separation */
}

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

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

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

.page-tin-tuc-article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px 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-article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

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

.page-tin-tuc-article-content h3 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-dark);
}

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

.page-tin-tuc-article-content h3 a:hover {
    color: var(--secondary-color);
}

.page-tin-tuc-article-content p {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tuc-btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.page-tin-tuc-btn-secondary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
}

/* FAQ Section Specific Styles */
.page-tin-tuc-faq {
    background-color: var(--bg-light);
}

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

.page-tin-tuc .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-tin-tuc .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-tin-tuc .faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--text-dark);
}

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

.page-tin-tuc .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: #555;
}

.page-tin-tuc .faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.page-tin-tuc .faq-item.active .faq-answer {
  max-height: 300px; /* Adjust as needed to fit content */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-tin-tuc-hero h1 {
        font-size: 2.8em;
    }
    .page-tin-tuc-section h2 {
        font-size: 2em;
    }
    .page-tin-tuc-article-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tin-tuc-hero {
        padding: 60px 15px;
    }
    .page-tin-tuc-hero h1 {
        font-size: 2.2em;
    }
    .page-tin-tuc-hero p {
        font-size: 1em;
    }
    .page-tin-tuc-btn-primary {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-tin-tuc-section {
        padding: 40px 0;
    }
    .page-tin-tuc-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-tin-tuc-article-content h3 {
        font-size: 1.3em;
    }
    .page-tin-tuc .faq-question {
        padding: 15px 20px;
    }
    .page-tin-tuc .faq-question h3 {
        font-size: 1.1em;
    }
    .page-tin-tuc .faq-toggle {
        font-size: 1.5em;
    }
    .page-tin-tuc .faq-answer {
        padding: 0 20px;
    }
    .page-tin-tuc .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-tin-tuc-hero h1 {
        font-size: 1.8em;
    }
    .page-tin-tuc-section h2 {
        font-size: 1.5em;
    }
    .page-tin-tuc-article-image {
        height: 180px;
    }
    .page-tin-tuc-article-content {
        padding: 15px;
    }
    .page-tin-tuc-article-content h3 {
        font-size: 1.1em;
    }
    .page-tin-tuc-article-content p {
        font-size: 0.85em;
    }
    .page-tin-tuc-btn-secondary {
        padding: 8px 20px;
        font-size: 0.8em;
    }
}