/* style/tintc.css */

/* Variables for custom colors */
:root {
    --page-tintc-bg: #08160F;
    --page-tintc-card-bg: #11271B;
    --page-tintc-text-main: #F2FFF6;
    --page-tintc-text-secondary: #A7D9B8;
    --page-tintc-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-tintc-border: #2E7A4E;
    --page-tintc-glow: #57E38D;
    --page-tintc-gold: #F2C14E;
    --page-tintc-divider: #1E3A2A;
    --page-tintc-deep-green: #0A4B2C;
}

.page-tintc {
    background-color: var(--page-tintc-bg); /* Body background from shared.css, this is for main content sections */
    color: var(--page-tintc-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for content */
}

/* Container for consistent content width */
.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 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, as body handles header offset */
    overflow: hidden; /* Ensure no overflow from images */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

.page-tintc__hero-content {
    position: relative;
    z-index: 1;
    margin-top: 30px; /* Space below image */
    max-width: 800px;
}

.page-tintc__main-title {
    color: var(--page-tintc-text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* No fixed font-size, rely on clamp if needed, otherwise default browser sizing is fine for H1 */
}

.page-tintc__hero-description {
    color: var(--page-tintc-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Section Titles and Descriptions */
.page-tintc__section-title {
    color: var(--page-tintc-text-main);
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 40px;
}

.page-tintc__section-description {
    color: var(--page-tintc-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-tintc__btn-primary {
    background: var(--page-tintc-button-gradient);
    color: var(--page-tintc-text-main); /* White text for contrast */
    border: none;
}

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

.page-tintc__btn-secondary {
    background-color: transparent;
    color: var(--page-tintc-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-tintc-gold);
}

.page-tintc__btn-secondary:hover {
    background-color: var(--page-tintc-gold);
    color: var(--page-tintc-bg); /* Dark text on gold hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* News/Promotions/Guides Grid */
.page-tintc__news-grid,
.page-tintc__promo-grid,
.page-tintc__guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-tintc__news-card,
.page-tintc__promo-card,
.page-tintc__guide-card {
    background-color: var(--page-tintc-card-bg);
    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,
.page-tintc__promo-card:hover,
.page-tintc__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-tintc__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-tintc__card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow and push read more to bottom */
    display: flex;
    flex-direction: column;
}

.page-tintc__card-title {
    color: var(--page-tintc-text-main);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-tintc__card-date {
    color: var(--page-tintc-text-secondary);
    font-size: 0.9em;
    margin-bottom: 15px;
}

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

.page-tintc__card-read-more {
    color: var(--page-tintc-gold);
    font-weight: bold;
    text-decoration: none;
    align-self: flex-start; /* Align to the start of the flex container */
}

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

.page-tintc__view-all-button-wrapper,
.page-tintc__view-more-faq-wrapper {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 60px;
}

/* FAQ Section */
.page-tintc__faq-section {
    padding: 60px 0;
}

.page-tintc__faq-list {
    margin-top: 40px;
}

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

.page-tintc__faq-item details {
    /* Reset default details styling */
    outline: none;
}

.page-tintc__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--page-tintc-text-main);
    background-color: var(--page-tintc-card-bg);
    transition: background-color 0.3s ease;
}

.page-tintc__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome's default marker */
}

.page-tintc__faq-item summary:hover {
    background-color: var(--page-tintc-deep-green);
}

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

.page-tintc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-tintc-gold);
}

.page-tintc__faq-answer {
    padding: 0 20px 20px;
    color: var(--page-tintc-text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

/* Call to Action Section */
.page-tintc__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-tintc__cta-section .page-tintc__container {
    background-color: var(--page-tintc-deep-green); /* Use a darker green for this CTA section */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-tintc__cta-section .page-tintc__section-title {
    margin-top: 0;
    color: var(--page-tintc-text-main);
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    .page-tintc__container,
    .page-tintc__hero-section,
    .page-tintc__latest-news-section,
    .page-tintc__promotions-section,
    .page-tintc__guides-section,
    .page-tintc__faq-section,
    .page-tintc__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-tintc__main-title {
        font-size: 2em; /* Adjust H1 for mobile, but avoid fixed large values */
    }

    .page-tintc__hero-description {
        font-size: 1em;
    }

    .page-tintc__section-title {
        font-size: 1.8em;
    }

    .page-tintc__section-description {
        font-size: 0.9em;
    }

    .page-tintc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary,
    .page-tintc a[class*="button"],
    .page-tintc a[class*="btn"] {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsive */
    .page-tintc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

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

    .page-tintc__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

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