/* style/tin-tc.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #DC143C; /* Crimson Red */
    --dark-bg-color: #1A1A1A; /* Dark background */
    --text-light: #FFFFFF;
    --text-dark: #333333;
    --card-bg: #222222;
    --border-color: #333333;
    --hover-gold: #FFC107;
    --hover-red: #C40C32;
}

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

.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: 3.2em;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-tin-tc h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-tin-tc p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

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

.page-tin-tc a:hover {
    color: var(--hover-gold);
    text-decoration: underline;
}

/* Hero Banner */
.page-tin-tc .hero-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--dark-bg-color), #2A2A2A);
    position: relative;
    overflow: hidden;
}

.page-tin-tc .hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 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-content h1 {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-tin-tc .hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
}

.page-tin-tc .hero-image {
    width: 100%;
    max-width: 1000px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.page-tin-tc .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Remove extra space below image */
}

.page-tin-tc .cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--secondary-color);
}

.page-tin-tc .cta-button:hover {
    background-color: var(--hover-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
    text-decoration: none;
}

/* News Introduction */
.page-tin-tc .news-introduction {
    padding: 60px 0;
    background-color: #222222;
    text-align: center;
}

.page-tin-tc .news-introduction p {
    max-width: 900px;
    margin: 0 auto 15px auto;
    color: #CCCCCC;
}

/* News Categories */
.page-tin-tc .news-categories {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

.page-tin-tc .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tin-tc .category-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-tin-tc .category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tin-tc .category-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #333333;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-tin-tc .category-item h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-tin-tc .category-item h3 a {
    color: var(--primary-color);
}

.page-tin-tc .category-item h3 a:hover {
    color: var(--hover-gold);
}

.page-tin-tc .category-item p {
    color: #AAAAAA;
    font-size: 1em;
}

/* Latest Articles */
.page-tin-tc .latest-articles {
    padding: 60px 0;
    background-color: #222222;
}

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

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

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

.page-tin-tc .article-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

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

.page-tin-tc .article-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tin-tc .article-card h3 a {
    color: var(--primary-color);
    display: block;
}

.page-tin-tc .article-card h3 a:hover {
    color: var(--hover-gold);
}

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

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

.page-tin-tc .read-more {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.page-tin-tc .read-more:hover {
    background-color: var(--hover-red);
    color: var(--text-light);
    text-decoration: none;
}

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

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

.page-tin-tc .page-link:hover, .page-tin-tc .page-link.active {
    background-color: var(--primary-color);
    color: var(--dark-bg-color);
    text-decoration: none;
}

.page-tin-tc .page-link.active {
    cursor: default;
}

/* Call to Action Section */
.page-tin-tc .cta-section {
    background: linear-gradient(90deg, var(--dark-bg-color) 0%, #333333 100%);
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tc .cta-section h2 {
    color: var(--primary-color);
    font-size: 2.8em;
    margin-bottom: 25px;
}

.page-tin-tc .cta-section p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #E0E0E0;
}

.page-tin-tc .cta-section .large-button {
    padding: 18px 40px;
    font-size: 1.4em;
    margin: 0 15px;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-tin-tc .cta-section .large-button:hover {
    background-color: var(--hover-red);
    border-color: var(--hover-red);
}

.page-tin-tc .cta-section .outline-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 18px 40px;
    font-size: 1.4em;
    margin: 0 15px;
}

.page-tin-tc .cta-section .outline-button:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* FAQ Section */
.page-tin-tc .faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

.page-tin-tc .faq-section h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
}

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

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

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

.page-tin-tc .faq-question:hover {
    background: #3A3A3A;
}

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

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

.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;
    color: #CCCCCC;
    background-color: var(--card-bg);
}

.page-tin-tc .faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to show content */
    padding: 20px 25px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tin-tc .hero-content h1 {
        font-size: 3em;
    }
    .page-tin-tc .hero-content p {
        font-size: 1.1em;
    }
    .page-tin-tc h2 {
        font-size: 2.2em;
    }
    .page-tin-tc .article-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-tin-tc .cta-section .large-button, .page-tin-tc .cta-section .outline-button {
        font-size: 1.2em;
        padding: 15px 30px;
    }
}

@media (max-width: 768px) {
    .page-tin-tc .hero-banner {
        padding: 60px 15px;
    }
    .page-tin-tc .hero-content h1 {
        font-size: 2.5em;
    }
    .page-tin-tc .hero-content p {
        font-size: 1em;
    }
    .page-tin-tc .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-tin-tc h2 {
        font-size: 2em;
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .page-tin-tc h3 {
        font-size: 1.5em;
    }
    .page-tin-tc .category-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tc .article-list {
        grid-template-columns: 1fr;
    }
    .page-tin-tc .article-card img {
        height: 200px;
    }
    .page-tin-tc .article-card .card-content {
        padding: 20px;
    }
    .page-tin-tc .cta-section {
        padding: 60px 15px;
    }
    .page-tin-tc .cta-section h2 {
        font-size: 2.2em;
    }
    .page-tin-tc .cta-section p {
        font-size: 1em;
    }
    .page-tin-tc .cta-section .large-button, .page-tin-tc .cta-section .outline-button {
        font-size: 1em;
        padding: 12px 25px;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }
    .page-tin-tc .faq-question {
        padding: 15px 20px;
    }
    .page-tin-tc .faq-question h3 {
        font-size: 1.1em;
    }
    .page-tin-tc .faq-toggle {
        font-size: 1.8em;
    }
    .page-tin-tc .faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-tin-tc .hero-content h1 {
        font-size: 2em;
    }
    .page-tin-tc .hero-content p {
        font-size: 0.9em;
    }
    .page-tin-tc h2 {
        font-size: 1.8em;
    }
    .page-tin-tc .cta-section .large-button, .page-tin-tc .cta-section .outline-button {
        max-width: 250px;
    }
    .page-tin-tc .pagination .page-link {
        padding: 8px 12px;
        margin: 0 3px;
    }
}