/* style/tintc.css */

/* Custom Colors */
:root {
    --page-tintc-primary: #11A84E; /* Main Color */
    --page-tintc-secondary: #22C768; /* Auxiliary Color */
    --page-tintc-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
    --page-tintc-card-bg: #11271B; /* Card Background */
    --page-tintc-bg: #08160F; /* Background */
    --page-tintc-text-main: #F2FFF6; /* Main Text */
    --page-tintc-text-secondary: #A7D9B8; /* Secondary Text */
    --page-tintc-border: #2E7A4E; /* Border */
    --page-tintc-glow: #57E38D; /* Glow */
    --page-tintc-gold: #F2C14E; /* Gold */
    --page-tintc-divider: #1E3A2A; /* Divider */
    --page-tintc-deep-green: #0A4B2C; /* Deep Green */
}

.page-tintc {
    background-color: var(--page-tintc-bg); /* Dark background from custom palette */
    color: var(--page-tintc-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 10px; /* As per instruction: 8-16px top padding */
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--page-tintc-deep-green); /* Fallback background */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 12px;
}

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

.page-tintc__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--page-tintc-text-main); /* Light text for dark background */
}

.page-tintc__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Using clamp as allowed for H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-tintc-gold); /* Using gold for main title */
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-tintc__btn-primary {
    background: var(--page-tintc-btn-gradient);
    color: var(--page-tintc-text-main); /* Light text on gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
    margin-right: 15px;
}

.page-tintc__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-tintc__btn-secondary {
    background: transparent;
    color: var(--page-tintc-gold); /* Gold text on transparent button */
    border: 2px solid var(--page-tintc-gold);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-tintc__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

/* News Grid Section */
.page-tintc__news-grid-section {
    padding: 60px 20px;
    background-color: var(--page-tintc-bg); /* Dark background */
    color: var(--page-tintc-text-main); /* Light text */
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    width: 100%; /* Ensure desktop width is 100% for flex/grid children */
}

.page-tintc__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    color: var(--page-tintc-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

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

.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: var(--page-tintc-card-bg); /* Card background from custom palette */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--page-tintc-text-main); /* Light text on card */
    border: 1px solid var(--page-tintc-divider);
}

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

.page-tintc__card-image {
    width: 100%;
    height: 225px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

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

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

.page-tintc__card-title a {
    color: var(--page-tintc-gold); /* Gold for card titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__card-title a:hover {
    color: var(--page-tintc-glow);
    text-decoration: underline;
}

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

.page-tintc__card-text {
    font-size: 1em;
    color: var(--page-tintc-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__card-link {
    display: inline-block;
    color: var(--page-tintc-secondary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-right: 15px;
}

.page-tintc__card-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: right 0.3s ease;
}

.page-tintc__card-link:hover::after {
    right: -5px;
}

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

/* CTA Section */
.page-tintc__cta-section {
    background-color: var(--page-tintc-deep-green); /* Deep Green background */
    padding: 80px 20px;
    text-align: center;
    color: var(--page-tintc-text-main);
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2), inset 0 -5px 15px rgba(0,0,0,0.2);
}

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

.page-tintc__cta-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--page-tintc-gold);
    margin-bottom: 25px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

/* FAQ Section */
.page-tintc__faq-section {
    padding: 60px 20px;
    background-color: var(--page-tintc-bg); /* Dark background */
    color: var(--page-tintc-text-main); /* Light text */
}

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

.page-tintc__faq-item {
    background-color: var(--page-tintc-card-bg); /* Card background for FAQ items */
    border: 1px solid var(--page-tintc-divider);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-tintc-text-main);
}

.page-tintc__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-tintc-gold); /* Gold for FAQ questions */
    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(var(--page-tintc-primary), 0.1);
}

.page-tintc__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-tintc__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-tintc-secondary);
    transition: transform 0.3s ease;
}

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate */
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-tintc__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-tintc__cta-title {
        font-size: clamp(2em, 5vw, 2.5em);
    }
    .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__hero-section {
        padding: 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

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

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

    .page-tintc__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 15px; /* Stack buttons */
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tintc__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-tintc__news-grid-section,
    .page-tintc__cta-section,
    .page-tintc__faq-section {
        padding: 40px 15px;
    }

    .page-tintc__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

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

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

    .page-tintc__card-image {
        height: 180px;
    }

    .page-tintc__card-content {
        padding: 20px;
    }

    .page-tintc__card-title {
        font-size: 1.2em;
    }

    .page-tintc__cta-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-tintc__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    /* Images responsiveness */
    .page-tintc img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no overflow */
    }
    /* Specific for sections that might not have default padding */
    .page-tintc__news-grid-section .page-tintc__container,
    .page-tintc__cta-section .page-tintc__container,
    .page-tintc__faq-section .page-tintc__container {
        padding-left: 0 !important; /* Container itself has padding, so child elements might need 0 */
        padding-right: 0 !important;
    }
}

/* Ensure no image filters are used */
.page-tintc img {
    filter: none !important;
}