:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8;
    --background-dark: #222222;
    --border-color: #e0e0e0;
}

.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: 20px;
}

.page-tin-tc__section {
    padding: 60px 0;
}

.page-tin-tc__section:nth-of-type(even) {
    background-color: #f0f0f0;
}

.page-tin-tc h1,
.page-tin-tc h2,
.page-tin-tc h3 {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-tin-tc h1 {
    font-size: 3em;
    color: var(--text-light); /* For hero banner */
}

.page-tin-tc h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
}

.page-tin-tc h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-tin-tc p {
    margin-bottom: 15px;
    text-align: justify;
}

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

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

/* Hero Banner */
.page-tin-tc__hero-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); /* Dark red to gold gradient */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-tin-tc__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-tin-tc__hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tc__hero-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-tin-tc__hero-image {
    width: 100%;
    max-width: 1200px; /* Limit image width */
    margin-top: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-tin-tc__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-tin-tc__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--primary-color);
}

.page-tin-tc__cta-button:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.page-tin-tc__cta-large {
    padding: 20px 50px;
    font-size: 1.5em;
}

/* Featured News Grid */
.page-tin-tc__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tin-tc__news-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px 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__news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-tin-tc__news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-tin-tc__news-card h3 {
    font-size: 1.4em;
    padding: 15px;
    margin-bottom: 0;
    text-align: left;
    flex-grow: 1; /* Allow title to take up space */
}

.page-tin-tc__news-card h3 a {
    color: var(--secondary-color);
    display: block; /* Make the whole title clickable */
}

.page-tin-tc__news-card h3 a:hover {
    color: var(--primary-color);
}

.page-tin-tc__news-card p {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px 15px;
    text-align: left;
}

.page-tin-tc__read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 15px;
    border-radius: 5px;
    margin: 0 15px 15px;
    align-self: flex-start; /* Align to the start of the flex item */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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


/* Categories */
.page-tin-tc__categories .page-tin-tc__container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.page-tin-tc__category-block {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    flex: 1 1 calc(50% - 20px); /* Two columns on larger screens */
    min-width: 300px; /* Minimum width for category blocks */
}

.page-tin-tc__category-block h3 {
    text-align: left;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-tin-tc__category-block ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-tin-tc__category-block ul li {
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.page-tin-tc__category-block ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.page-tin-tc__category-block ul li a {
    color: var(--text-dark);
    font-weight: 500;
}

.page-tin-tc__category-block ul li a:hover {
    color: var(--primary-color);
}

.page-tin-tc__button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-tin-tc__button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}


/* Why Follow Section */
.page-tin-tc__why-follow {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-tin-tc__why-follow h2 {
    color: var(--primary-color);
}

.page-tin-tc__why-follow p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-tin-tc__benefits-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-tin-tc__benefits-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    position: relative;
    padding-left: 45px;
    font-size: 1.1em;
    color: var(--text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-tin-tc__benefits-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.page-tin-tc__benefits-list li::before {
    content: "✅";
    position: absolute;
    left: 15px;
    top: 20px;
    font-size: 1.2em;
}

/* FAQ Section */
.page-tin-tc__faq {
    padding-bottom: 100px;
}

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

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

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
    background: #f9f9f9;
    color: #555;
}

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

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

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

.page-tin-tc__cta-bottom h2 {
    color: var(--text-light);
    font-size: 2.8em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-tin-tc__cta-bottom p {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Floating Register Button */
.page-tin-tc__floating-register {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.page-tin-tc__floating-register a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.page-tin-tc__floating-register a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-tin-tc__hero-content h1 {
        font-size: 3em;
    }
    .page-tin-tc h2 {
        font-size: 2em;
    }
    .page-tin-tc h3 {
        font-size: 1.6em;
    }
    .page-tin-tc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-tin-tc__category-block {
        flex: 1 1 calc(100% - 20px); /* Single column on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-tin-tc__section {
        padding: 40px 0;
    }
    .page-tin-tc__container {
        padding: 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 30px;
        font-size: 1em;
    }
    .page-tin-tc__cta-large {
        padding: 15px 35px;
        font-size: 1.2em;
    }
    .page-tin-tc__news-card h3 {
        font-size: 1.2em;
    }
    .page-tin-tc__news-card img {
        height: 180px;
    }
    .page-tin-tc__benefits-list {
        grid-template-columns: 1fr;
    }
    .page-tin-tc__cta-bottom h2 {
        font-size: 2em;
    }
    .page-tin-tc__cta-bottom p {
        font-size: 1em;
    }
    .page-tin-tc__floating-register {
        bottom: 20px;
        right: 20px;
    }
    .page-tin-tc__floating-register a {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    /* FAQ specific responsive */
    .faq-question {
        padding: 12px 15px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-answer {
        padding: 0 15px;
    }
    .faq-item.active .faq-answer {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .page-tin-tc__hero-content h1 {
        font-size: 2em;
    }
    .page-tin-tc h2 {
        font-size: 1.8em;
    }
    .page-tin-tc h3 {
        font-size: 1.4em;
    }
    .page-tin-tc__news-grid {
        grid-template-columns: 1fr;
    }
    .page-tin-tc__cta-button {
        padding: 10px 25px;
        font-size: 0.9em;
    }
    .page-tin-tc__cta-large {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-tin-tc__floating-register {
        bottom: 15px;
        right: 15px;
    }
    .page-tin-tc__floating-register a {
        padding: 10px 18px;
        font-size: 0.8em;
    }
}