/* style/tintc.css */

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

/* Base styles for the page-tintc scope */
.page-tintc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color); /* Body background handled by shared.css var(--bg-color), this is for sections */
}

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

.page-tintc__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-tintc__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main);
}

.page-tintc__center-text {
    text-align: center;
}

/* Hero Section */
.page-tintc__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for first section */
    background-color: var(--deep-green); /* Example background for hero */
    overflow: hidden; /* Ensure content does not overflow */
}

.page-tintc__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 20px; /* Space between content and image */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-tintc__hero-content {
    text-align: center;
    max-width: 800px;
    margin-bottom: 40px;
    z-index: 1; /* Ensure text is above image if layered (though not layered here) */
}

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

.page-tintc__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-tintc__btn-primary,
.page-tintc__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't exceed container width */
}

.page-tintc__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-tintc__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    margin-left: 20px;
}

.page-tintc__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--card-bg); /* Dark text on gold hover */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tintc__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't exceed max width */
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

/* Sections */
.page-tintc__introduction,
.page-tintc__events,
.page-tintc__strategies,
.page-tintc__faq-section,
.page-tintc__conclusion-section {
    background-color: var(--background-color); /* Default to dark background for consistency with body */
    padding: 60px 0;
}

.page-tintc__promotions,
.page-tintc__updates,
.page-tintc__cta-section {
    background-color: var(--deep-green); /* Using deep green for darker sections */
    padding: 60px 0;
}

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

/* Cards */
.page-tintc__card {
    background-color: var(--card-bg);
    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(--text-main);
}

.page-tintc__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-tintc__card-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-tintc__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--gold-color);
    line-height: 1.3;
}

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

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

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

.page-tintc__card .page-tintc__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to start of card */
    width: auto; /* Override max-width for card buttons */
    max-width: calc(100% - 40px); /* Adjust for padding */
}

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

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

.page-tintc__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--gold-color);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For <summary> */
    -webkit-touch-callout: none; /* Disable text selection on iOS */
    -webkit-user-select: none; /* Disable text selection on iOS */
    -khtml-user-select: none; /* Disable text selection on older browsers */
    -moz-user-select: none; /* Disable text selection on Firefox */
    -ms-user-select: none; /* Disable text selection on IE/Edge */
    user-select: none; /* Disable text selection */
}

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

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

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

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

/* Rotate toggle for open state */
.page-tintc__faq-item[open] .page-tintc__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X */
}

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

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

/* Inline links */
.page-tintc__inline-link {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-tintc__inline-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
    .page-tintc__container {
        padding: 0 15px;
    }

    .page-tintc__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, this is decorative */
    }

    .page-tintc__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-tintc__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-tintc__text-block {
        font-size: 1em;
    }

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

    .page-tintc__hero-image {
        margin-top: 15px;
    }

    /* All containing elements for images */
    .page-tintc__section,
    .page-tintc__card,
    .page-tintc__container,
    .page-tintc__hero-section,
    .page-tintc__introduction,
    .page-tintc__promotions,
    .page-tintc__events,
    .page-tintc__updates,
    .page-tintc__strategies,
    .page-tintc__faq-section,
    .page-tintc__cta-section,
    .page-tintc__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Buttons responsiveness */
    .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: 12px 20px !important; /* Adjust padding for mobile */
        margin-left: 0 !important; /* Remove margin-left for secondary button */
    }

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

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

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

    .page-tintc__card .page-tintc__btn-secondary {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0; /* Adjust margin for stacked buttons */
    }

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

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