/* style/tintc.css */

/* Base styles for the page-tintc scope */
.page-tintc {
    font-family: 'Arial', sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box; /* Ensure padding is included in element's total width and height */
}

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

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

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-tintc__main-title {
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    /* Using clamp for responsive font-size, no fixed large size */
    font-size: clamp(2em, 5vw, 3.5em); 
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-tintc__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* Section Titles */
.page-tintc__section-title {
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.8em, 4vw, 2.8em);
}

.page-tintc__section-description {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-tintc__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-tintc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-tintc__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow color */
    border: 2px solid #57E38D; /* Glow color for border */
}

.page-tintc__btn-secondary:hover {
    background-color: #57E38D; /* Glow color */
    color: #08160F; /* Background color for text */
    transform: translateY(-2px);
}

/* Latest News Section */
.page-tintc__latest-news-section {
    background-color: #08160F; /* Background */
    padding: 60px 0;
}

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

.page-tintc__news-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-tintc__news-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
    object-fit: cover;
    display: block;
}

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

.page-tintc__news-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-tintc__news-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__news-title a:hover {
    color: #57E38D; /* Glow color */
}

.page-tintc__news-excerpt {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-tintc__news-date {
    font-size: 0.85em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    display: block; /* Ensure date is on its own line */
}

.page-tintc__read-more {
    color: #57E38D; /* Glow color */
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start; /* Align to the start of the card */
    transition: color 0.3s ease;
}

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

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

/* CTA Section */
.page-tintc__cta-section {
    background-color: #0A4B2C; /* Deep Green for a slightly different dark background */
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #1E3A2A; /* Divider */
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-tintc__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* FAQ Section */
.page-tintc__faq-section {
    background-color: #08160F; /* Background */
    padding: 60px 0;
}

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

.page-tintc__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-tintc__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #F2FFF6; /* Text Main */
    font-weight: bold;
    font-size: 1.1em;
    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: rgba(46, 122, 78, 0.2); /* Border color with opacity */
}

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

.page-tintc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-tintc__faq-answer {
    padding: 0 25px 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1em;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-tintc__container {
        padding: 0 15px !important; /* Add padding for mobile */
    }

    .page-tintc__hero-section {
        padding-bottom: 40px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-tintc__hero-image-wrapper {
        max-height: 300px !important; /* Adjust hero image height for mobile */
    }

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

    .page-tintc__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
    }

    .page-tintc__description {
        font-size: 1em !important;
    }

    .page-tintc__section-title {
        font-size: clamp(1.6em, 7vw, 2.2em) !important;
    }

    .page-tintc__section-description {
        margin: 0 auto 30px !important;
    }

    .page-tintc__news-grid {
        grid-template-columns: 1fr !important; /* Single column on mobile */
        gap: 20px !important;
    }

    .page-tintc__news-image {
        height: 180px !important; /* Adjust news card image height */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-tintc__news-title {
        font-size: 1.1em !important;
    }

    .page-tintc__news-content {
        padding: 20px !important;
    }

    .page-tintc__cta-section {
        padding: 60px 15px !important;
    }

    .page-tintc__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important; /* Ensure buttons have internal padding */
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }
    
    .page-tintc__faq-item summary {
        padding: 15px 20px !important;
        font-size: 1em !important;
    }

    .page-tintc__faq-answer {
        padding: 0 20px 15px !important;
    }

    /* Mobile image responsiveness for all images */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-section,
    .page-tintc__latest-news-section,
    .page-tintc__cta-section,
    .page-tintc__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are set on individual sections if needed */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific top padding for hero section on mobile if needed, but 10px is fine */
    .page-tintc__hero-section {
        padding-top: 10px !important; 
    }

    /* Ensure all content area images are at least 200px and responsive */
    .page-tintc__news-image {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure no filter on images unless specifically designed for contrast */
.page-tintc img {
    filter: none;
}
/* Re-add filter for hero image for contrast, as it's a specific design choice */
.page-tintc__hero-image {
    filter: brightness(0.7);
}