/* style/tintc.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --background-dark: #0A0A0A; /* From custom colors */
    --card-background: #111111; /* From custom colors */
    --text-light: #FFF6D6; /* From custom colors */
    --border-color: #3A2A12; /* From custom colors */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* From custom colors */
    --glow-color: #FFD36B; /* From custom colors */
    --h1-clamp: clamp(2.2rem, 4vw + 1rem, 3.5rem);
    --h2-clamp: clamp(1.8rem, 3.5vw + 1rem, 3rem);
    --h3-clamp: clamp(1.4rem, 2.5vw + 1rem, 2.2rem);
}

.page-tintc {
    background-color: var(--background-dark); /* Dark background */
    color: var(--text-light); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

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

/* Typography */
.page-tintc__main-title {
    font-size: var(--h1-clamp);
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.2;
}

.page-tintc__section-title {
    font-size: var(--h2-clamp);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
}

.page-tintc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-tintc__section-description {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: rgba(255, 246, 214, 0.8);
}

/* 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;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
}

.page-tintc__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure full width for flex item */
}

.page-tintc__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(242, 193, 78, 0.3); /* Glow effect */
}

.page-tintc__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no color filters */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-tintc__intro-text {
    font-size: 1.2rem;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff; /* White text for button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-tintc__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* Latest News Section */
.page-tintc__latest-news-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-tintc__news-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-tintc__news-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-light);
}

.page-tintc__news-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent card images */
    overflow: hidden;
}

.page-tintc__news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no color filters */
    transition: transform 0.3s ease;
}

.page-tintc__news-card:hover .page-tintc__news-image-wrapper img {
    transform: scale(1.05);
}

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

.page-tintc__news-title {
    font-size: var(--h3-clamp);
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    line-height: 1.3;
}

.page-tintc__news-meta {
    font-size: 0.9rem;
    color: rgba(255, 246, 214, 0.7);
    margin-bottom: 15px;
}

.page-tintc__news-excerpt {
    font-size: 1rem;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: bold;
    align-self: flex-start;
}

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

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

.page-tintc__view-all-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-tintc__view-all-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}


/* FAQ Section */
.page-tintc__faq-section {
    padding: 80px 0;
    background-color: var(--card-background); /* Use card background for contrast */
    border-top: 1px solid var(--border-color);
}

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

details.page-tintc__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--background-dark); /* Darker background for FAQ items */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-tintc__faq-item summary.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-light); /* Light text */
    font-size: 1.1rem;
    font-weight: 600;
}
details.page-tintc__faq-item summary.page-tintc__faq-question::-webkit-details-marker {
    display: none;
}
details.page-tintc__faq-item summary.page-tintc__faq-question:hover {
    background: rgba(242, 193, 78, 0.1); /* Slight hover effect */
}
.page-tintc__faq-qtext {
    flex: 1;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.5;
    text-align: left;
    color: var(--text-light);
}
.page-tintc__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
    transition: transform 0.3s ease;
}
details.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}
details.page-tintc__faq-item .page-tintc__faq-answer {
    padding: 0 20px 20px;
    background: var(--card-background); /* Use card background for answer */
    border-radius: 0 0 8px 8px;
    color: rgba(255, 246, 214, 0.85); /* Slightly dimmer light text */
}
.page-tintc__faq-answer p {
    margin: 0;
    padding-top: 10px;
}


/* Bottom CTA Section */
.page-tintc__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-dark); /* Ensure dark background */
}

.page-tintc__cta-bottom-section .page-tintc__container {
    background-color: var(--card-background); /* Card background for the inner container */
    padding: 50px 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(242, 193, 78, 0.2);
}

.page-tintc__cta-bottom-title {
    font-size: var(--h2-clamp);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-tintc__cta-bottom-description {
    font-size: 1.1rem;
    color: rgba(255, 246, 214, 0.9);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Global image styles */
.page-tintc img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no color filters */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tintc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

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

    .page-tintc__container {
        padding: 15px;
    }

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

    .page-tintc__hero-image img {
        border-radius: 4px;
    }

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

    .page-tintc__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-tintc__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 90% !important; /* Force button width */
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

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

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

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

    .page-tintc__news-title {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

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

    .page-tintc__view-all-wrapper {
        margin-top: 40px;
    }

    .page-tintc__view-all-button {
        padding: 10px 25px;
        font-size: 15px;
        max-width: 90% !important; /* Force button width */
        width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    details.page-tintc__faq-item summary.page-tintc__faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    .page-tintc__faq-qtext {
        font-size: inherit;
    }
    .page-tintc__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-tintc__faq-item .page-tintc__faq-answer {
        padding: 0 15px 15px;
    }

    .page-tintc__cta-bottom-section .page-tintc__container {
        padding: 30px 20px;
    }
    .page-tintc__cta-bottom-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-tintc__cta-bottom-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Mobile image and button width enforcement */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .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;
    }

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

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