/* style/tintc.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-tintc {
    color: var(--text-main); /* #F2FFF6 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css: var(--background-color) #08160F */
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px; /* Adjusted padding for desktop */
    padding-top: 10px; /* Small top padding as body handles header offset */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px; /* Space between image and content */
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-tintc__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-tintc__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tintc__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

/* Section Titles and Descriptions */
.page-tintc__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tintc__section-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons adapt */
}

.page-tintc__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-tintc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-secondary {
    background: transparent;
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-tintc__btn-secondary:hover {
    background: var(--deep-green); /* #0A4B2C */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Latest News Section */
.page-tintc__latest-news-section {
    padding: 60px 0;
}

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

.page-tintc__article-card {
    background-color: var(--card-bg); /* #11271B */
    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;
}

.page-tintc__article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__article-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-tintc__article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.page-tintc__article-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tintc__article-title a {
    color: var(--text-main); /* #F2FFF6 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__article-title a:hover {
    color: var(--glow); /* #57E38D */
}

.page-tintc__article-meta {
    font-size: 0.9rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 15px;
}

.page-tintc__article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-tintc__read-more-btn {
    display: inline-block;
    color: var(--glow); /* #57E38D */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-tintc__read-more-btn:hover {
    text-decoration: underline;
}

.page-tintc__view-all-news-container {
    text-align: center;
    margin-top: 40px;
}

/* CTA Section */
.page-tintc__cta-section {
    padding: 60px 0;
}

.page-tintc__cta-section .page-tintc__container {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-tintc__cta-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* FAQ Section */
.page-tintc__faq-section {
    padding: 60px 0;
}

.page-tintc__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-tintc__faq-item {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-tintc__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-main); /* #F2FFF6 */
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.page-tintc__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-tintc__faq-item summary:hover {
    background-color: var(--deep-green); /* #0A4B2C */
}

.page-tintc__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--glow); /* #57E38D */
}

.page-tintc__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-tintc__faq-answer p {
    margin-bottom: 10px;
}

/* Related Links Section */
.page-tintc__related-links-section {
    padding: 60px 0;
    text-align: center;
}

.page-tintc__link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-tintc__related-link-card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: var(--text-main); /* #F2FFF6 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-tintc__related-link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__related-link-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--glow); /* #57E38D */
}

.page-tintc__related-link-description {
    font-size: 0.9rem;
    color: var(--text-secondary); /* #A7D9B8 */
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tintc__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }

    .page-tintc__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .page-tintc__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
}

@media (max-width: 768px) {
    .page-tintc {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-tintc__container {
        padding: 0 15px;
    }

    /* Mobile specific padding for sections */
    .page-tintc__hero-section,
    .page-tintc__latest-news-section,
    .page-tintc__cta-section,
    .page-tintc__faq-section,
    .page-tintc__related-links-section {
        padding: 30px 15px;
    }

    .page-tintc__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-tintc__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-tintc__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-tintc__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 15px;
    }

    .page-tintc__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-tintc__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-tintc__article-title {
        font-size: 1.2rem;
    }

    .page-tintc__cta-section .page-tintc__container {
        padding: 30px 20px;
    }

    .page-tintc__cta-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .page-tintc__cta-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-tintc__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

    .page-tintc__faq-answer {
        padding: 0 15px 15px 15px;
        font-size: 0.9rem;
    }

    .page-tintc__link-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-tintc__related-link-card {
        padding: 20px;
    }

    /* Image responsive adaptions */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-tintc__hero-image-wrapper,
    .page-tintc__article-image-wrapper,
    .page-tintc__cta-section .page-tintc__container,
    .page-tintc__faq-item,
    .page-tintc__related-link-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Ensure content containers have padding for mobile */
    .page-tintc__latest-news-section .page-tintc__container,
    .page-tintc__faq-section .page-tintc__container,
    .page-tintc__related-links-section .page-tintc__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Custom Colors from palette */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* This is the body background, handled by shared.css usually */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Applying custom colors for contrast and design */
.page-tintc__dark-bg { /* Example class for sections with deep green background */
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
}
.page-tintc__text-contrast-fix { /* Fallback for text if contrast is bad */
    color: var(--text-main) !important;
    text-shadow: none !important;
}

/* Ensure all links within main content are visible */
.page-tintc a {
    color: var(--glow); /* #57E38D */
}
.page-tintc a:hover {
    color: var(--gold); /* #F2C14E */
}