/* style/tintc.css */

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

.page-tintc {
    font-family: 'Arial', sans-serif; /* Example font */
    color: var(--page-tintc-text-main); /* Default text color for the page */
    background-color: var(--page-tintc-bg); /* Default background color for the page */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-tintc a:hover {
    color: var(--page-tintc-glow);
}

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

.page-tintc__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--page-tintc-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* --- Hero Section --- */
.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-tintc-deep-green); /* Fallback background */
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-height: 600px; /* Limit hero image height */
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-tintc__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 8px;
}

.page-tintc__main-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Use clamp for H1 */
    color: var(--page-tintc-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-tintc__description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--page-tintc-text-main);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    background: var(--page-tintc-btn-gradient);
    color: var(--page-tintc-text-main);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word; /* Allow text wrapping for long button text */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button fits container */
}

.page-tintc__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-tintc__cta-button--primary {
    background: var(--page-tintc-btn-gradient);
    color: var(--page-tintc-text-main);
}

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

.page-tintc__cta-button--secondary:hover {
    background: var(--page-tintc-secondary);
    color: var(--page-tintc-text-main);
}

/* --- Featured News Section --- */
.page-tintc__featured-news {
    padding: 60px 0;
    background-color: var(--page-tintc-bg);
}

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

.page-tintc__news-card {
    background-color: var(--page-tintc-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;
    border: 1px solid var(--page-tintc-border);
    display: flex;
    flex-direction: column;
}

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

.page-tintc__news-card a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.page-tintc__news-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, ensures >= 200px */
    object-fit: cover;
    display: block;
}

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

.page-tintc__news-title {
    font-size: 1.3rem;
    color: var(--page-tintc-text-main);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.page-tintc__news-date {
    font-size: 0.85rem;
    color: var(--page-tintc-secondary);
    font-style: italic;
    margin-top: auto; /* Push date to bottom */
}

.page-tintc__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* --- Latest News Section --- */
.page-tintc__latest-news {
    padding: 60px 0;
    background-color: var(--page-tintc-deep-green);
}

.page-tintc__news-list {
    display: grid;
    gap: 25px;
}

.page-tintc__list-item {
    background-color: var(--page-tintc-card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    border: 1px solid var(--page-tintc-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__list-item a {
    display: flex;
    width: 100%;
    color: inherit;
}

.page-tintc__list-image {
    width: 300px; /* Fixed width for list items, ensures >= 200px */
    height: 200px; /* Fixed height, ensures >= 200px */
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.page-tintc__list-content {
    padding: 15px 20px;
    flex-grow: 1;
}

.page-tintc__list-title {
    font-size: 1.1rem;
    color: var(--page-tintc-text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.page-tintc__list-excerpt {
    font-size: 0.9rem;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 10px;
}

.page-tintc__list-date {
    font-size: 0.8rem;
    color: var(--page-tintc-secondary);
    font-style: italic;
}

/* --- Call to Action Section --- */
.page-tintc__cta-section {
    background-color: var(--page-tintc-primary);
    padding: 80px 0;
    text-align: center;
    border-top: 5px solid var(--page-tintc-gold);
}

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

.page-tintc__cta-description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--page-tintc-text-main);
    max-width: 700px;
    margin: 0 auto 30px auto;
}

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

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

.page-tintc__faq-item {
    background-color: var(--page-tintc-card-bg);
    border: 1px solid var(--page-tintc-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-tintc-text-main);
}

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

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

.page-tintc__faq-item[open] .page-tintc__faq-question {
    background-color: var(--page-tintc-primary);
    border-bottom: 1px solid var(--page-tintc-primary);
}

.page-tintc__faq-qtext {
    flex-grow: 1;
}

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

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

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

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

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        max-width: 90%;
    }
    /* News grid can remain 1fr or 2fr depending on design */
    .page-tintc__list-image {
        width: 250px; /* Adjust for smaller screens */
        height: 180px;
    }
}

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

    /* Hero Section Mobile */
    .page-tintc__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual separation */
    }
    .page-tintc__hero-image {
        max-height: 300px;
        filter: brightness(1) !important; /* Remove darkening for mobile if text is below */
    }
    .page-tintc__hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 30px 15px;
        background: var(--page-tintc-deep-green);
        border-radius: 0;
    }
    .page-tintc__main-title {
        font-size: 2rem;
    }
    .page-tintc__description {
        font-size: 1rem;
    }

    /* General responsive images, buttons, and sections */
    .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__cta-wrapper,
    .page-tintc__news-card,
    .page-tintc__list-item,
    .page-tintc__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons */
    .page-tintc__cta-button,
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary,
    .page-tintc a[class*="button"],
    .page-tintc a[class*="btn"] {
        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,
    .page-tintc__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-tintc__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* News Grid */
    .page-tintc__news-grid {
        grid-template-columns: 1fr;
    }
    .page-tintc__news-card {
        padding: 0;
    }
    .page-tintc__news-card a {
        padding: 0;
    }
    .page-tintc__news-image {
        height: 200px; /* Ensure height >= 200px */
    }
    .page-tintc__news-content {
        padding: 15px;
    }

    /* Latest News List */
    .page-tintc__list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }
    .page-tintc__list-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-tintc__list-image {
        width: 100% !important; /* Mobile list image takes full width */
        height: 200px !important; /* Ensure height >= 200px */
    }
    .page-tintc__list-content {
        padding: 15px;
    }

    /* FAQ Section */
    .page-tintc__faq-question,
    .page-tintc__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-tintc__main-title {
        font-size: 1.8rem;
    }
    .page-tintc__section-title {
        font-size: 1.5rem;
    }
    .page-tintc__cta-title {
        font-size: 1.6rem;
    }
}

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

/* Content area images minimum size constraint (for desktop/larger screens) */
@media (min-width: 769px) {
    .page-tintc .page-tintc__news-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-tintc .page-tintc__list-image {
        min-width: 200px;
        min-height: 200px;
    }
}