/* style/tin-tc.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --dark-background: #1a1a1a; /* Very dark grey */
  --text-light: #f0f0f0;
  --text-dark: #333333;
  --card-background: #2a2a2a;
  --border-color: #444444;
}

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

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

.page-tin-tc-hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--dark-background) 0%, #333333 100%);
  border-bottom: 2px solid var(--secondary-color);
}

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

.page-tin-tc-intro-text {
  font-size: 1.2em;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-tin-tc-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
}

.page-tin-tc-cta-button:hover {
  background-color: #ff3366;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(220, 20, 60, 0.6);
}

.page-tin-tc-section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-tin-tc-featured-articles, .page-tin-tc-latest-news {
  padding: 40px 0;
}

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

.page-tin-tc-article-card {
  background-color: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-tin-tc-article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(var(--primary-color-rgb), 0.3);
}

.page-tin-tc-article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 3px solid var(--secondary-color);
}

.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: 10px;
  line-height: 1.3;
}

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

.page-tin-tc-card-title a:hover {
  color: #fff;
}

.page-tin-tc-card-meta {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}

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

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

.page-tin-tc-read-more:hover {
  background-color: #fff;
  color: var(--secondary-color);
}

.page-tin-tc-latest-news .page-tin-tc-news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.page-tin-tc-news-item {
  background-color: var(--card-background);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tc-news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--secondary-color-rgb), 0.2);
}

.page-tin-tc-news-thumbnail {
  width: 250px;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 3px solid var(--primary-color);
}

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

.page-tin-tc-news-title {
  font-size: 1.8em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-tin-tc-news-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tc-news-title a:hover {
  color: var(--primary-color);
}

.page-tin-tc-news-meta {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 10px;
}

.page-tin-tc-news-summary {
  font-size: 0.95em;
  color: #ccc;
}

.page-tin-tc-pagination {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}

.page-tin-tc-pagination-link {
  display: inline-block;
  padding: 10px 18px;
  margin: 0 5px;
  background-color: var(--card-background);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-tin-tc-pagination-link:hover, .page-tin-tc-pagination-link.page-tin-tc-pagination-active {
  background-color: var(--primary-color);
  color: var(--dark-background);
  border-color: var(--primary-color);
}

.page-tin-tc-faq {
  padding: 60px 0;
  background-color: #222222;
  border-top: 1px solid var(--border-color);
}

.page-tin-tc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

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

/* Question style */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  margin-bottom: 0;
}

.faq-item.active .faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: #383838;
  border-color: var(--primary-color);
}

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

.faq-question h3 {
  color: var(--primary-color);
  font-size: 1.25em;
  margin: 0;
  flex-grow: 1;
}

/* Toggle icon */
.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
  margin-left: 15px;
}

.page-tin-tc-cta-bottom {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ff4d6d 100%);
  text-align: center;
  border-top: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin-top: 60px;
}

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

.page-tin-tc-cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 25px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.page-tin-tc-cta-text {
  font-size: 1.3em;
  color: #ffe0e0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tin-tc-main-title {
    font-size: 2.8em;
  }
  .page-tin-tc-section-title {
    font-size: 2.2em;
  }
  .page-tin-tc-news-thumbnail {
    width: 200px;
    height: 150px;
  }
  .page-tin-tc-news-title {
    font-size: 1.5em;
  }
  .page-tin-tc-cta-title {
    font-size: 2.4em;
  }
  .page-tin-tc-cta-text {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-tin-tc-hero {
    padding: 60px 15px;
  }
  .page-tin-tc-main-title {
    font-size: 2.2em;
  }
  .page-tin-tc-intro-text {
    font-size: 1em;
  }
  .page-tin-tc-cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-tin-tc-section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .page-tin-tc-article-grid {
    grid-template-columns: 1fr;
  }
  .page-tin-tc-article-image {
    height: 180px;
  }
  .page-tin-tc-card-title {
    font-size: 1.3em;
  }
  .page-tin-tc-news-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-tin-tc-news-thumbnail {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 3px solid var(--primary-color);
  }
  .page-tin-tc-news-content {
    padding: 15px;
  }
  .page-tin-tc-news-title {
    font-size: 1.3em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-tin-tc-cta-bottom {
    padding: 50px 15px;
  }
  .page-tin-tc-cta-title {
    font-size: 1.8em;
  }
  .page-tin-tc-cta-text {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-tin-tc-main-title {
    font-size: 1.8em;
  }
  .page-tin-tc-section-title {
    font-size: 1.6em;
  }
  .page-tin-tc-card-title {
    font-size: 1.2em;
  }
  .page-tin-tc-news-title {
    font-size: 1.1em;
  }
  .page-tin-tc-read-more {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-tin-tc-pagination-link {
    padding: 8px 12px;
    font-size: 0.9em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 1.5em;
  }
  .page-tin-tc-cta-title {
    font-size: 1.6em;
  }
  .page-tin-tc-cta-text {
    font-size: 0.9em;
  }
}