/* style/tin-tc.css */
:root {
    --primary-color: #CC0000; /* Đỏ - Đam mê, năng lượng */
    --secondary-color: #FFD700; /* Vàng kim - Sang trọng, thịnh vượng */
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f4f4f4;
    --bg-dark: #222222;
    --border-color: #e0e0e0;
}

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

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

.page-tin-tc .news-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a30000 100%);
    padding: 80px 0;
    color: var(--text-light);
    text-align: center;
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tc .hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tc .hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-tin-tc .cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tin-tc .cta-button:hover {
    background: #ffc200; /* Slightly darker gold */
    color: #990000; /* Slightly darker red */
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-tin-tc .latest-articles, .page-tin-tc .featured-topics, .page-tin-tc .cta-section, .page-tin-tc .faq-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.page-tin-tc .latest-articles {
    background: #ffffff;
}

.page-tin-tc .section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

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

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

.page-tin-tc .news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

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

.page-tin-tc .card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-tin-tc .card-title .page-tin-tc.card-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tc .card-title .page-tin-tc.card-link:hover {
    color: var(--secondary-color);
}

.page-tin-tc .card-excerpt {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tc .article-date {
    font-size: 0.9em;
    color: #666666;
    align-self: flex-end;
}

.page-tin-tc .view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-tin-tc .featured-topics {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e0e0e0 100%);
}

.page-tin-tc .topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-tin-tc .topic-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tc .topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-tin-tc .topic-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-tin-tc .topic-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-tin-tc .topic-title .page-tin-tc.topic-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tin-tc .topic-title .page-tin-tc.topic-link:hover {
    color: var(--secondary-color);
}

.page-tin-tc .topic-description {
    font-size: 0.95em;
    color: #555555;
}

.page-tin-tc .cta-section {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 0;
}

.page-tin-tc .cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-tin-tc .cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-tin-tc .cta-button.primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    margin-right: 20px;
}

.page-tin-tc .cta-button.primary:hover {
    background: #ffc200;
    color: #990000;
}

.page-tin-tc .cta-button.secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-tin-tc .cta-button.secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-tin-tc .faq-section {
    background: #fdfdfd;
}

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

/* FAQ default state - answer hidden */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  border-top: 1px solid var(--border-color);
}

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

/* Question styling */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 10px;
}

.faq-question:hover {
  background: #f5f5f5;
  border-color: var(--primary-color);
}

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

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-tin-tc .hero-title {
        font-size: 2.5em;
    }
    .page-tin-tc .section-title {
        font-size: 2em;
    }
    .page-tin-tc .cta-title {
        font-size: 2.2em;
    }
    .page-tin-tc .article-grid, .page-tin-tc .topic-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-tin-tc .news-hero, .page-tin-tc .cta-section {
        padding: 50px 0;
    }
    .page-tin-tc .hero-title {
        font-size: 2em;
    }
    .page-tin-tc .hero-description, .page-tin-tc .cta-description {
        font-size: 1em;
    }
    .page-tin-tc .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-tin-tc .article-grid, .page-tin-tc .topic-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tc .cta-button {
        padding: 12px 25px;
        font-size: 1em;
        margin: 10px 0;
        display: block;
    }
    .page-tin-tc .cta-button.primary {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .faq-question {
        padding: 12px;
        flex-direction: row;
        align-items: center;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 18px;
        margin-left: 10px;
    }
}

@media (max-width: 480px) {
    .page-tin-tc .hero-title {
        font-size: 1.8em;
    }
    .page-tin-tc .section-title {
        font-size: 1.6em;
    }
    .page-tin-tc .cta-title {
        font-size: 1.8em;
    }
    .page-tin-tc .card-title {
        font-size: 1.3em;
    }
    .page-tin-tc .topic-title {
        font-size: 1.1em;
    }
}