/* style/tin-tc.css */

:root {
    --primary-color: #0A192F; /* Deep Midnight Blue */
    --secondary-color: #E0B400; /* Luxurious Gold */
    --text-light: #F0F2F5; /* Light Gray for text on dark backgrounds */
    --text-dark: #333333; /* Dark Gray for text on light backgrounds */
    --background-light: #FFFFFF; /* White background */
    --background-dark: #1A2E47; /* Darker blue background for sections */
    --border-color: #3A4A67;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

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

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

.page-tin-tc h1, .page-tin-tc h2, .page-tin-tc h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tin-tc h1 {
    font-size: 2.8em;
    text-align: center;
    color: var(--secondary-color);
}

.page-tin-tc h2 {
    font-size: 2.2em;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-tin-tc h3 {
    font-size: 1.5em;
}

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

.page-tin-tc a:hover {
    color: #FFD700; /* Brighter gold on hover */
}

.page-tin-tc section {
    padding: 60px 0;
    position: relative;
}

/* News Hero Section */
.page-tin-tc .news-hero {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 80px 0 40px;
}

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

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

.page-tin-tc .hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 8px 20px var(--shadow-color);
    object-fit: cover;
}

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

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

/* Featured Articles */
.page-tin-tc .featured-articles {
    background-color: var(--background-light);
    padding-top: 40px;
}

.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: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px 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-tc .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

.page-tin-tc .card-summary {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-tin-tc .article-date {
    font-size: 0.85em;
    color: #999;
    text-align: right;
    margin-top: auto;
}

/* Latest Articles List */
.page-tin-tc .latest-articles {
    background-color: #f8f8f8;
    padding-bottom: 40px;
}

.page-tin-tc .article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.page-tin-tc .list-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tc .list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-tin-tc .list-item-image {
    width: 250px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-tin-tc .list-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.page-tin-tc .list-item-title {
    font-size: 1.25em;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.page-tin-tc .list-item-link {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

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

.page-tin-tc .list-item-summary {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.page-tin-tc .pagination {
    text-align: center;
    margin-top: 40px;
}

.page-tin-tc .page-link {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary-color);
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Call to Action Section Bottom */
.page-tin-tc .cta-section-bottom {
    background: linear-gradient(90deg, var(--primary-color), #1A2E47);
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px;
}

.page-tin-tc .cta-section-bottom .section-title {
    color: var(--secondary-color);
    font-size: 2.5em;
    margin-bottom: 20px;
}

.page-tin-tc .cta-section-bottom .section-description {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-light);
}

/* FAQ Section */
.page-tin-tc .faq-section {
    background-color: var(--background-light);
    padding-top: 40px;
}

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

.faq-item {
  margin-bottom: 15px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
}

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

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

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: #f9f9f9;
  color: var(--text-dark);
  border-radius: 0 0 5px 5px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-tin-tc .hero-title {
        font-size: 2.8em;
    }

    .page-tin-tc .list-item {
        flex-direction: column;
        align-items: center;
    }

    .page-tin-tc .list-item-image {
        width: 100%;
        height: 200px;
        border-radius: 10px 10px 0 0;
    }

    .page-tin-tc .list-item-content {
        padding: 15px;
        text-align: center;
    }
    .page-tin-tc .list-item-title {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-tin-tc h1 {
        font-size: 2.2em;
    }

    .page-tin-tc h2 {
        font-size: 1.8em;
    }

    .page-tin-tc .hero-title {
        font-size: 2.5em;
    }

    .page-tin-tc .hero-description {
        font-size: 1em;
    }

    .page-tin-tc .article-grid {
        grid-template-columns: 1fr;
    }

    .page-tin-tc .article-card {
        margin-bottom: 20px;
    }

    .page-tin-tc .list-item-image {
        border-radius: 8px 8px 0 0;
    }

    .page-tin-tc .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-tin-tc .cta-section-bottom .section-title {
        font-size: 2em;
    }

    .faq-question {
        padding: 12px;
    }

    .faq-question h3 {
        font-size: 1em;
    }

    .faq-toggle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .page-tin-tc h1 {
        font-size: 1.8em;
    }

    .page-tin-tc h2 {
        font-size: 1.6em;
    }

    .page-tin-tc .hero-title {
        font-size: 2em;
    }

    .page-tin-tc .hero-description {
        font-size: 0.9em;
    }

    .page-tin-tc .article-image {
        height: 180px;
    }

    .page-tin-tc .list-item-image {
        height: 160px;
    }

    .page-tin-tc .card-content, .page-tin-tc .list-item-content {
        padding: 15px;
    }

    .page-tin-tc .card-title, .page-tin-tc .list-item-title {
        font-size: 1em;
    }

    .page-tin-tc .cta-section-bottom .section-title {
        font-size: 1.8em;
    }

    .page-tin-tc .cta-section-bottom .section-description {
        font-size: 0.95em;
    }
}