/* style/tintc.css */

/* Variables for colors based on the provided palette */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* General page styling */
.page-tintc {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background); /* Default background for the page */
}

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

/* Section styling */
.page-tintc__section {
    padding: 60px 0;
    text-align: center;
}

.page-tintc__section:nth-child(even) {
    background-color: var(--color-card-bg); /* Alternate section background for visual separation */
}

.page-tintc__section-title {
    font-size: 2.5em;
    color: var(--color-gold); /* Use gold for main titles */
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-tintc__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-main);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tintc__hero-image-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio for responsive image */
    height: 0;
    overflow: hidden;
}

.page-tintc__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-tintc__hero-content {
    position: relative; /* Changed from absolute to relative to follow "image first, text second" rule */
    padding: 40px 20px;
    text-align: center;
    z-index: 2;
    max-width: 900px;
    margin-top: -100px; /* Pull content slightly over the image for visual flow */
    background: var(--color-card-bg); /* Use a solid background for content */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.page-tintc__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--btn-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-tintc__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-glow), 0.5); /* Use glow color for hover effect */
}

/* Card Styling */
.page-tintc__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.page-tintc__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-tintc__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure image behaves as a block */
}

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

.page-tintc__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-tintc__card-title a:hover {
    color: var(--color-primary);
}

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

.page-tintc__read-more {
    display: inline-flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.page-tintc__read-more:hover {
    color: var(--color-gold);
    transform: translateX(5px);
}

.page-tintc__arrow {
    margin-left: 5px;
    font-size: 1.2em;
}

/* Category Grid */
.page-tintc__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-tintc__category-card .page-tintc__category-image {
    height: 180px; /* Adjusted height for category cards */
}

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

.page-tintc__news-card {
    display: flex;
    flex-direction: column;
}

.page-tintc__news-card .page-tintc__news-image {
    height: 220px; /* Adjusted height for news cards */
    margin-bottom: 15px;
}

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

.page-tintc__news-meta {
    font-size: 0.85em;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.page-tintc__news-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.95em;
    margin-bottom: 15px;
    flex-grow: 1;
}

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

/* Lists */
.page-tintc__advantage-list,
.page-tintc__method-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-tintc__list-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05em;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-tintc__list-item strong {
    color: var(--color-gold);
    min-width: 120px; /* Ensure strong text stands out */
}

/* Call to Action Section */
.page-tintc__call-to-action {
    background: var(--color-card-bg); /* Use card background for CTA section */
    padding: 80px 0;
    border-top: 1px solid var(--color-divider);
    border-bottom: 1px solid var(--color-divider);
}

.page-tintc__cta-content {
    max-width: 800px;
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-tintc__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
}

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

.page-tintc__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(var(--color-glow), 0.5);
}

/* FAQ Section */
.page-tintc__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

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

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

.page-tintc__faq-item[open] .page-tintc__faq-question {
    background-color: var(--color-primary);
}

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

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

.page-tintc__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
}

.page-tintc__faq-answer p {
    margin-bottom: 10px;
}

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

/* Links within content */
.page-tintc a {
    color: var(--color-secondary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-tintc__section-title {
        font-size: 2em;
    }
    .page-tintc__paragraph {
        font-size: 1em;
    }
    .page-tintc__category-grid,
    .page-tintc__news-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-tintc__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        width: calc(100% - 30px); /* Adjust width to account for padding */
    }

    .page-tintc__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-tintc__hero-description {
        font-size: 1em;
    }
    .page-tintc__section {
        padding: 40px 0;
    }
    .page-tintc__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-tintc__container {
        padding: 0 15px;
    }

    /* Images responsive */
    .page-tintc img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-tintc__hero-image-wrapper,
    .page-tintc__category-card,
    .page-tintc__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-tintc__category-image,
    .page-tintc__news-image {
        height: auto !important; /* Allow images to scale height */
    }

    /* Buttons responsive */
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        overflow: hidden !important;
    }

    .page-tintc__list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-tintc__list-item strong {
        min-width: unset;
        width: 100%;
        text-align: center;
    }

    .page-tintc__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-tintc__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .page-tintc__hero-content {
        margin-top: -40px;
        padding: 20px 10px;
    }
    .page-tintc__section-title {
        font-size: 1.5em;
    }
    .page-tintc__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-tintc__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-tintc__category-grid,
    .page-tintc__news-grid {
        grid-template-columns: 1fr;
    }
}