/* style/tintc.css */

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

.page-tintc {
    color: var(--color-text-main); /* Light text for dark body background */
    background-color: var(--color-bg); /* Ensure main content area matches body if not explicitly set */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    box-sizing: border-box;
}

.page-tintc__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-tintc__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: var(--color-text-main);
}

.page-tintc__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-tintc__description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* News Grid Section */
.page-tintc__news-grid-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

.page-tintc__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-tintc__section-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-tintc__news-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    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;
    text-align: left;
    border: 1px solid var(--color-border);
}

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

.page-tintc__news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

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

.page-tintc__news-card-title a {
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__news-card-title a:hover {
    color: var(--color-gold);
}

.page-tintc__news-card-date {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-tintc__news-card-excerpt {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__read-more-link {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.page-tintc__read-more-link:hover {
    color: var(--color-gold);
}

.page-tintc__view-all-container {
    margin-top: 50px;
}

/* Featured Article Section */
.page-tintc__featured-article-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-bg);
    color: var(--color-text-main);
}

.page-tintc__featured-article-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.page-tintc__featured-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-tintc__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

/* Promo CTA Section */
.page-tintc__promo-cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-tintc__promo-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-tintc__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-tintc__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
}

.page-tintc__btn-secondary {
    background: none;
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
}

.page-tintc__btn-secondary:hover {
    background: var(--color-secondary);
    color: #ffffff;
}

/* FAQ Section */
.page-tintc__faq-section {
    padding: 80px 20px;
    background-color: var(--color-bg);
    color: var(--color-text-main);
    text-align: center;
}

.page-tintc__faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.page-tintc__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details tag */
    -webkit-tap-highlight-color: transparent;
}

.page-tintc__faq-question::-webkit-details-marker {
    display: none;
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
    border-bottom-color: transparent;
}

.page-tintc__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg);
}

.page-tintc__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

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

/* General Image Styling */
.page-tintc img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-tintc__hero-content {
        padding: 15px;
    }

    .page-tintc__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-tintc__description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }

    .page-tintc__news-grid-section,
    .page-tintc__featured-article-section,
    .page-tintc__promo-cta-section,
    .page-tintc__faq-section {
        padding: 40px 15px;
    }

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

    .page-tintc__section-description {
        font-size: clamp(0.85rem, 2vw, 1rem);
    }

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

    .page-tintc__news-card {
        margin-bottom: 20px;
    }

    .page-tintc__news-card-title {
        font-size: 1.1rem;
    }

    .page-tintc__news-card-excerpt {
        font-size: 0.95rem;
    }

    .page-tintc__featured-image {
        margin-bottom: 25px;
    }

    .page-tintc__text-block {
        font-size: 1rem;
    }

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

    .page-tintc__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-tintc__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95rem;
    }

    /* Enforce image responsiveness */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-tintc__hero-image-wrapper,
    .page-tintc__news-grid-section,
    .page-tintc__featured-article-section,
    .page-tintc__promo-cta-section,
    .page-tintc__faq-section,
    .page-tintc__news-card,
    .page-tintc__cta-buttons-wrapper,
    .page-tintc__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
}

/* Ensure content area images are not too small */
.page-tintc__news-card-image,
.page-tintc__featured-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fixes for specific elements if needed - based on dark background */
.page-tintc__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

/* Ensure sufficient contrast for all text */
.page-tintc p,
.page-tintc li,
.page-tintc h1,
.page-tintc h2,
.page-tintc h3,
.page-tintc h4,
.page-tintc h5,
.page-tintc h6,
.page-tintc a {
    color: inherit; /* Inherit from parent, ensure parent has good contrast */
}

.page-tintc a {
    text-decoration: underline;
}

.page-tintc a:hover {
    text-decoration: none;
}

/* Specific overrides for contrast where brand colors might be used for text */
.page-tintc__read-more-link {
    color: var(--color-secondary);
}
.page-tintc__read-more-link:hover {
    color: var(--color-gold);
}

.page-tintc__btn-secondary {
    color: var(--color-secondary);
}

.page-tintc__btn-secondary:hover {
    color: #ffffff;
}

.page-tintc__faq-toggle {
    color: var(--color-gold);
}

.page-tintc__faq-question a {
    color: var(--color-text-main); /* Ensure link in question has good contrast */
}