/* style/tin-tc.css */

/* Biến màu sắc */
:root {
  --primary-color: #FFD700; /* Vàng sang trọng */
  --secondary-color: #8B0000; /* Đỏ đậm, mạnh mẽ */
  --text-color-dark: #333333; /* Văn bản chính màu tối */
  --text-color-light: #ffffff; /* Văn bản trên nền tối */
  --background-light: #f5f5f5; /* Nền sáng */
  --background-dark: #222222; /* Nền tối */
  --border-color: #e0e0e0;
  --hover-color: #CCAA00;
}

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

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

.page-tin-tc-section {
  padding: 60px 0;
  text-align: center;
}

.page-tin-tc-section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-tin-tc-section h2 {
  font-size: 3em;
  margin-bottom: 40px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 15px;
}

.page-tin-tc-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-tc-btn-primary,
.page-tin-tc-btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-tin-tc-btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tin-tc-btn-primary:hover {
  background-color: var(--hover-color);
  transform: translateY(-2px);
}

.page-tin-tc-btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-tin-tc-btn-secondary:hover {
  background-color: #a00000;
  transform: translateY(-1px);
}

.page-tin-tc-btn-text {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-tin-tc-btn-text:hover {
  color: var(--primary-color);
}

/* Hero Section */
.page-tin-tc-hero {
  position: relative;
  background: url('[GALLERY:blog:78WIN8_news_banner,online_betting,promotions]') center center/cover no-repeat;
  color: var(--text-color-light);
  padding: 100px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

.page-tin-tc-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-tin-tc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

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

.page-tin-tc-hero p {
  font-size: 1.4em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Articles Grid */
.page-tin-tc-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
}

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

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

.page-tin-tc-article-img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

.page-tin-tc-article-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-tin-tc-article-content h3 {
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.3;
}

.page-tin-tc-article-content h3 a.page-tin-tc-article-title-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tc-article-content h3 a.page-tin-tc-article-title-link:hover {
  color: var(--primary-color);
}

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

/* FAQ Section */
.page-tin-tc-faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

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

.page-tin-tc .faq-question:hover {
  background: var(--background-light);
}

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

.page-tin-tc .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.page-tin-tc .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: var(--background-light);
  color: #555555;
}

.page-tin-tc .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 25px;
  border-top: 1px solid var(--border-color);
}

.page-tin-tc .faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Latest Articles List */
.page-tin-tc-latest-articles {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-tin-tc-latest-articles h2 {
  color: var(--primary-color);
}

.page-tin-tc-latest-articles h2::after {
  background-color: var(--text-color-light);
}

.page-tin-tc-articles-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-tin-tc-list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-tin-tc-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-tin-tc-list-item-img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 25px;
  flex-shrink: 0;
}

.page-tin-tc-list-item-content {
  flex-grow: 1;
}

.page-tin-tc-list-item-content h3 {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-tin-tc-list-item-content h3 a.page-tin-tc-list-item-title-link {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-tin-tc-list-item-content h3 a.page-tin-tc-list-item-title-link:hover {
  color: var(--primary-color);
}

.page-tin-tc-list-item-content p {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 10px;
}

.page-tin-tc-article-date {
  display: block;
  font-size: 0.85em;
  color: #aaaaaa;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-tin-tc-hero h1 {
    font-size: 3em;
  }
  .page-tin-tc-hero p {
    font-size: 1.2em;
  }
  .page-tin-tc-section h2 {
    font-size: 2.5em;
  }
  .page-tin-tc-article-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-tin-tc-hero {
    padding: 80px 15px;
    min-height: 350px;
  }
  .page-tin-tc-hero h1 {
    font-size: 2.5em;
  }
  .page-tin-tc-hero p {
    font-size: 1em;
  }
  .page-tin-tc-section {
    padding: 40px 0;
  }
  .page-tin-tc-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-tin-tc-articles-grid {
    grid-template-columns: 1fr;
  }
  .page-tin-tc-article-img {
    height: 200px;
  }
  .page-tin-tc-article-content h3 {
    font-size: 1.5em;
  }
  .page-tin-tc-list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-tin-tc-list-item-img {
    margin-right: 0;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  .page-tin-tc .faq-question {
    padding: 15px 20px;
  }
  .page-tin-tc .faq-question h3 {
    font-size: 1.1em;
  }
  .page-tin-tc .faq-answer {
    padding: 0 20px;
  }
  .page-tin-tc .faq-item.active .faq-answer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .page-tin-tc-hero h1 {
    font-size: 2em;
  }
  .page-tin-tc-hero p {
    font-size: 0.9em;
  }
  .page-tin-tc-btn-primary, .page-tin-tc-btn-secondary {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-tin-tc-article-content h3 {
    font-size: 1.3em;
  }
  .page-tin-tc-list-item-content h3 {
    font-size: 1.4em;
  }
}