/* style/tintc.css */

/* Root variables for colors */
:root {
    --page-tintc-bg-main: #08160F;
    --page-tintc-card-bg: #11271B;
    --page-tintc-text-main: #F2FFF6;
    --page-tintc-text-secondary: #A7D9B8;
    --page-tintc-border-color: #2E7A4E;
    --page-tintc-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-tintc-glow-color: #57E38D;
    --page-tintc-gold-color: #F2C14E;
    --page-tintc-divider-color: #1E3A2A;
    --page-tintc-deep-green: #0A4B2C;
    --page-tintc-primary-color: #11A84E; /* Main brand color */
    --page-tintc-secondary-color: #22C768; /* Auxiliary brand color */
    --page-tintc-dark-text: #333333;
    --page-tintc-light-text: #ffffff;
}

.page-tintc {
    background-color: var(--page-tintc-bg-main);
    color: var(--page-tintc-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* 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-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-tintc-deep-green); /* A darker base for the hero */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width of its container */
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast, NOT changing color */
    transform: scale(1.05); /* Slight zoom for visual effect */
    transition: transform 0.3s ease-in-out;
}

.page-tintc__hero-content {
    position: relative; /* Relative to hero section, not absolute over image */
    z-index: 2;
    margin-top: -100px; /* Pull content slightly up over the bottom of the image for visual flow */
    background: linear-gradient(to top, var(--page-tintc-bg-main) 0%, transparent 100%);
    padding: 80px 20px 20px;
    border-radius: 15px 15px 0 0;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    color: var(--page-tintc-text-main);
}

.page-tintc__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--page-tintc-gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-tintc__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--page-tintc-text-secondary);
}

/* Section Titles & Descriptions */
.page-tintc__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--page-tintc-gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-tintc__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--page-tintc-text-secondary);
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-tintc__btn-primary {
    background: var(--page-tintc-btn-gradient);
    color: var(--page-tintc-light-text);
    border: none;
}

.page-tintc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

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

.page-tintc__btn-secondary:hover {
    background: var(--page-tintc-gold-color);
    color: var(--page-tintc-bg-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tintc__cta-buttons,
.page-tintc__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure desktop width is 100% with max-width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Latest News Section */
.page-tintc__latest-news {
    padding: 80px 0;
    background-color: var(--page-tintc-bg-main);
    color: var(--page-tintc-text-main);
}

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

.page-tintc__news-card {
    background-color: var(--page-tintc-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Ensure cards have a minimum height */
}

.page-tintc__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-tintc__news-image {
    width: 100%;
    height: 220px; /* Fixed height for consistent card image size */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no CSS filters are applied */
}

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

.page-tintc__news-date {
    font-size: 0.9rem;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 10px;
    display: block;
}

.page-tintc__news-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

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

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

.page-tintc__read-more {
    color: var(--page-tintc-gold-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

.page-tintc__read-more:hover {
    text-decoration: underline;
    color: var(--page-tintc-glow-color);
}

/* CTA Section */
.page-tintc__cta-section {
    padding: 80px 0;
    background-color: var(--page-tintc-primary-color); /* Use primary color for CTA background */
    color: var(--page-tintc-light-text); /* Light text on primary color background */
    text-align: center;
}

.page-tintc__cta-section .page-tintc__section-title {
    color: var(--page-tintc-light-text); /* White title on green background */
    text-shadow: none;
}

.page-tintc__cta-section .page-tintc__section-description {
    color: var(--page-tintc-light-text);
}

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

.page-tintc__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.page-tintc__faq-item {
    background-color: var(--page-tintc-card-bg);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* For details tag */
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-tintc-text-main);
    cursor: pointer;
    background-color: var(--page-tintc-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--page-tintc-divider-color);
    transition: background-color 0.3s ease;
}

.page-tintc__faq-question:hover {
    background-color: var(--page-tintc-primary-color);
}

/* Remove default details marker */
.page-tintc__faq-item summary {
    list-style: none;
}
.page-tintc__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--page-tintc-gold-color);
    margin-left: 15px;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    content: "−"; /* Changed by JS */
}

.page-tintc__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-tintc-text-secondary);
    background-color: var(--page-tintc-card-bg);
    border-top: 1px solid var(--page-tintc-divider-color); /* Separator */
}

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

/* Color Contrast Fixes (as per prompt) */
.page-tintc__dark-bg {
    color: var(--page-tintc-light-text); /* Deep green background, light text */
    background: var(--page-tintc-bg-main);
}

.page-tintc__light-bg {
    color: var(--page-tintc-dark-text); /* Light background, dark text */
    background: var(--page-tintc-primary-color); /* Using brand color as light bg for contrast */
}

.page-tintc__text-contrast-fix {
    color: var(--page-tintc-light-text) !important; /* Ensure light text on dark backgrounds */
    text-shadow: none !important;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        margin-top: -80px;
    }
    .page-tintc__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-tintc__description {
        font-size: 1.1rem;
    }
    .page-tintc__news-card {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding-bottom: 40px;
    }
    .page-tintc__hero-content {
        margin-top: -60px;
        padding: 60px 15px 15px;
    }
    .page-tintc__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-tintc__description {
        font-size: 1rem;
    }

    .page-tintc__latest-news,
    .page-tintc__cta-section,
    .page-tintc__faq-section {
        padding: 60px 0;
    }

    .page-tintc__section-title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        padding: 0 15px;
    }
    .page-tintc__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-tintc__news-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-tintc__news-card {
        min-height: auto; /* Allow height to adjust */
    }

    .page-tintc__news-image {
        height: 180px;
    }

    .page-tintc__card-content {
        padding: 20px;
    }
    .page-tintc__news-title {
        font-size: 1.2rem;
    }
    .page-tintc__news-excerpt {
        font-size: 0.95rem;
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        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__cta-buttons,
    .page-tintc__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Mobile image responsiveness */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-image-wrapper { /* Add hero-image-wrapper here */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* FAQ */
    .page-tintc__faq-list {
        padding: 0 15px;
    }
    .page-tintc__faq-question {
        font-size: 1.1rem;
        padding: 18px 20px;
    }
    .page-tintc__faq-answer {
        padding: 18px 20px;
    }
}

/* Ensure no CSS filter on images */
.page-tintc img {
    filter: none;
}

/* Content area image size constraint */
.page-tintc__latest-news img,
.page-tintc__news-card img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure desktop width: 100% for hero image wrapper */
.page-tintc__hero-image-wrapper {
    width: 100%;
}