/* style/tintc.css */

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

/* Base styles for the page content */
.page-tintc {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background (#f8f9fa) */
    background-color: #f8f9fa; /* Ensure body background is respected */
}

.page-tintc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Adjust based on 1920x1080 aspect ratio for a max height */
    overflow: hidden;
    position: relative;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-tintc__hero-content {
    position: relative; /* Ensure content is below the image in normal flow */
    background-color: #ffffff; /* Light background for text block */
    padding: 30px 20px;
    margin-top: -80px; /* Overlap slightly for visual effect, but not cover the image */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    z-index: 10; /* Ensure content is above other elements if any overlap */
    color: #333333;
}

.page-tintc__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--page-tintc-primary);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-tintc__intro-text {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-tintc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-tintc__btn-secondary:hover {
    background-color: var(--page-tintc-primary);
    color: var(--page-tintc-text-main);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-tintc__section {
    padding: 60px 0;
    margin-bottom: 30px;
    background-color: #ffffff; /* Default light background for sections */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-tintc__section--importance {
    background-color: #f0f0f0; /* Slightly different light background */
}

.page-tintc__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--page-tintc-primary);
    text-align: center;
    margin-bottom: 40px;
    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-color: var(--page-tintc-secondary);
    border-radius: 2px;
}

.page-tintc__paragraph {
    font-size: 1.05rem;
    color: #444444;
    margin-bottom: 20px;
    text-align: justify;
}

.page-tintc__paragraph strong {
    color: var(--page-tintc-primary);
}

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

.page-tintc__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333; /* Dark text on light card background */
    display: flex;
    flex-direction: column;
}

.page-tintc__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-tintc__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    line-height: 1.4;
}

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

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

.page-tintc__card-text {
    font-size: 0.95rem;
    color: #666666;
    margin: 0 20px 20px;
    flex-grow: 1; /* Ensure text pushes content down */
}

/* Highlights Section (Dark background) */
.page-tintc__dark-section {
    background-color: var(--page-tintc-deep-green); /* Dark background */
    color: var(--page-tintc-text-main); /* Light text */
    padding: 80px 0;
}

.page-tintc__section-title--light {
    color: var(--page-tintc-text-main);
}

.page-tintc__section-title--light::after {
    background-color: var(--page-tintc-gold);
}

.page-tintc__grid--highlights {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    text-align: center;
}

.page-tintc__highlight-item {
    background-color: var(--page-tintc-card-bg); /* Darker card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-tintc-text-main);
    transition: background-color 0.3s ease;
}

.page-tintc__highlight-item:hover {
    background-color: rgba(17, 39, 27, 0.8); /* Slightly lighter on hover */
}

.page-tintc__highlight-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--page-tintc-gold);
    margin-bottom: 15px;
}

.page-tintc__highlight-text {
    font-size: 1rem;
    color: var(--page-tintc-text-secondary);
}

/* Access Methods Section */
.page-tintc__list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-tintc__list-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 5px solid var(--page-tintc-primary);
    color: #333333;
}

.page-tintc__list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-tintc__list-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--page-tintc-primary);
    margin-bottom: 10px;
}

.page-tintc__list-text {
    font-size: 1rem;
    color: #555555;
}

/* FAQ Section */
.page-tintc__section--faq {
    background-color: #f0f8f0; /* Light green background */
}

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

.page-tintc__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--page-tintc-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-tintc__faq-item[open] {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-tintc-primary);
    cursor: pointer;
    background-color: #ffffff;
    border: none;
    width: 100%;
    text-align: left;
    outline: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-tintc__faq-question::-webkit-details-marker {
    display: none;
}

.page-tintc__faq-item[open] .page-tintc__faq-question {
    background-color: var(--page-tintc-primary);
    color: var(--page-tintc-text-main);
    border-bottom: 1px solid var(--page-tintc-divider);
}

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

.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg);
    color: var(--page-tintc-gold);
}

.page-tintc__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: #444444;
    text-align: justify;
}

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

/* Conclusion Section */
.page-tintc__section--conclusion {
    text-align: center;
    background-color: var(--page-tintc-background); /* Dark background */
    color: var(--page-tintc-text-main); /* Light text */
    padding: 80px 0;
}

.page-tintc__section--conclusion .page-tintc__section-title {
    color: var(--page-tintc-text-main);
}

.page-tintc__section--conclusion .page-tintc__section-title::after {
    background-color: var(--page-tintc-gold);
}

.page-tintc__section--conclusion .page-tintc__paragraph {
    color: var(--page-tintc-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-tintc__section--conclusion a {
    color: var(--page-tintc-gold);
    text-decoration: underline;
}

.page-tintc__section--conclusion a:hover {
    color: var(--page-tintc-glow);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-tintc__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
    }
    .page-tintc__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-tintc__section-title {
        font-size: 2rem;
    }
    .page-tintc__card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding-top: 10px !important;
        margin-bottom: 20px;
    }
    .page-tintc__hero-image-wrapper {
        max-height: 400px;
    }
    .page-tintc__hero-content {
        margin-top: -40px;
        padding: 20px 15px;
        max-width: 95%;
    }
    .page-tintc__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-tintc__intro-text {
        font-size: 1rem;
    }
    .page-tintc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }
    .page-tintc__btn-primary,
    .page-tintc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
    }

    .page-tintc__section {
        padding: 40px 0;
        margin-bottom: 20px;
    }
    .page-tintc__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-tintc__paragraph {
        font-size: 0.95rem;
    }

    .page-tintc__grid {
        grid-template-columns: 1fr;
    }
    .page-tintc__card-image {
        height: 200px;
    }
    .page-tintc__card-title {
        font-size: 1.2rem;
    }
    .page-tintc__card-text {
        font-size: 0.9rem;
    }

    .page-tintc__dark-section {
        padding: 50px 0;
    }
    .page-tintc__highlight-title {
        font-size: 1.3rem;
    }
    .page-tintc__highlight-text {
        font-size: 0.95rem;
    }

    .page-tintc__list {
        grid-template-columns: 1fr;
    }
    .page-tintc__list-title {
        font-size: 1.2rem;
    }
    .page-tintc__list-text {
        font-size: 0.95rem;
    }

    .page-tintc__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-tintc__faq-toggle {
        font-size: 1.5rem;
    }
    .page-tintc__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-tintc img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-content,
    .page-tintc__faq-list,
    .page-tintc__list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for hero content padding if needed */
    .page-tintc__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}