/* style/tin-tc.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f4f7f6;
    --background-dark: #002244;
    --border-color: #e0e0e0;
    --hover-color: #ffd700;
}

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

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

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

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

/* Hero Section */
.page-tin-tc__hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d99 100%);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.page-tin-tc__hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

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

.page-tin-tc__hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.page-tin-tc__cta-button:hover {
    background-color: #ffc400;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Latest News Section */
.page-tin-tc__latest-news {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-tin-tc__latest-news h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-tin-tc__latest-news > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: var(--text-dark);
}

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

.page-tin-tc__news-card {
    background-color: var(--text-light);
    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__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-tin-tc__news-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-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    min-height: 72px;
}

.page-tin-tc__card-content h3 a {
    color: var(--primary-color);
    font-weight: bold;
}

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

.page-tin-tc__card-content p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

.page-tin-tc__read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    padding: 8px 0;
    border-bottom: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.page-tin-tc__read-more:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Pagination */
.page-tin-tc__pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 10px;
}

.page-tin-tc__page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.page-tin-tc__page-link:hover,
.page-tin-tc__page-link--active {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.page-tin-tc__page-link:last-child {
    width: auto;
    padding: 0 15px;
}

/* Categories Section */
.page-tin-tc__categories {
    background-color: var(--background-dark);
    padding: 60px 0;
    color: var(--text-light);
    text-align: center;
}

.page-tin-tc__categories h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-tin-tc__categories > p {
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    opacity: 0.9;
}

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

.page-tin-tc__category-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-tin-tc__category-card:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-tin-tc__category-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-tin-tc__category-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-tin-tc__category-card p {
    font-size: 0.95em;
    opacity: 0.8;
}

/* Featured Article Section */
.page-tin-tc__featured-article {
    padding: 60px 0;
    background-color: var(--text-light);
}

.page-tin-tc__featured-article h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.page-tin-tc__article-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.page-tin-tc__article-image {
    flex: 1 1 45%;
    max-width: 45%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-tin-tc__article-text {
    flex: 1 1 50%;
    max-width: 50%;
}

.page-tin-tc__article-text p {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-tin-tc__read-more--large {
    font-size: 1.1em;
    padding: 10px 0;
    margin-top: 20px;
    display: inline-block;
    border-bottom: 3px solid var(--secondary-color);
}

/* CTA Bottom Section */
.page-tin-tc__cta-bottom {
    background: linear-gradient(45deg, var(--secondary-color) 0%, #ffc400 100%);
    padding: 60px 20px;
    text-align: center;
    color: var(--primary-color);
}

.page-tin-tc__cta-bottom-content {
    max-width: 900px;
}

.page-tin-tc__cta-bottom h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-tin-tc__cta-bottom p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333;
}

.page-tin-tc__cta-bottom .page-tin-tc__cta-button {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tin-tc__cta-bottom .page-tin-tc__cta-button:hover {
    background-color: #004d99;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-tin-tc__faq {
    padding: 60px 0;
    background-color: var(--background-light);
}

.page-tin-tc__faq h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--text-light);
}

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

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

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

.faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    color: var(--text-dark);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding: 15px 25px;
    background: #fcfcfc;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tin-tc__hero h1 {
        font-size: 2.8em;
    }
    .page-tin-tc__hero p {
        font-size: 1.1em;
    }
    .page-tin-tc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-tin-tc__article-image,
    .page-tin-tc__article-text {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-tin-tc__article-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-tin-tc__hero {
        padding: 60px 15px;
    }
    .page-tin-tc__hero h1 {
        font-size: 2.2em;
    }
    .page-tin-tc__hero p {
        font-size: 1em;
    }
    .page-tin-tc__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-tin-tc__latest-news h2,
    .page-tin-tc__categories h2,
    .page-tin-tc__featured-article h2,
    .page-tin-tc__cta-bottom h2,
    .page-tin-tc__faq h2 {
        font-size: 2em;
    }
    .page-tin-tc__news-card {
        margin-bottom: 20px;
    }
    .page-tin-tc__category-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tc__category-icon {
        width: 70px;
        height: 70px;
    }
    .page-tin-tc__cta-bottom h2 {
        font-size: 2.2em;
    }
    .page-tin-tc__cta-bottom p {
        font-size: 1em;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 1.5em;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.active .faq-answer {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .page-tin-tc__hero h1 {
        font-size: 1.8em;
    }
    .page-tin-tc__latest-news h2,
    .page-tin-tc__categories h2,
    .page-tin-tc__featured-article h2,
    .page-tin-tc__cta-bottom h2,
    .page-tin-tc__faq h2 {
        font-size: 1.8em;
    }
    .page-tin-tc__news-image {
        height: 180px;
    }
    .page-tin-tc__card-content h3 {
        font-size: 1.3em;
        min-height: auto;
    }
    .page-tin-tc__pagination .page-tin-tc__page-link {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }
    .page-tin-tc__pagination .page-tin-tc__page-link:last-child {
        padding: 0 10px;
    }
    .page-tin-tc__article-content {
        gap: 20px;
    }
    .page-tin-tc__article-image {
        margin-bottom: 20px;
    }
}