/* style/tintc.css */

:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg: #FFFFFF;
    --body-bg: #F4F7FB;
    --text-main: #1F2D3D;
    --text-black: #000000;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --header-offset: 122px; /* Default value, will be overridden by shared.css */
}

.page-tintc {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--body-bg);
}

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

/* Hero Section */
.page-tintc__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, relying on body for header offset */
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: var(--primary-color);
    color: #ffffff;
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-tintc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
}

.page-tintc__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 800px;
}

.page-tintc__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-tintc__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Section Titles */
.page-tintc__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-black);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-tintc__dark-section .page-tintc__section-title {
    color: #ffffff;
}

.page-tintc__section-description {
    font-size: 1rem;
    color: var(--text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

.page-tintc__dark-section .page-tintc__section-description {
    color: #f0f0f0;
}

/* News Grid */
.page-tintc__latest-news-section,
.page-tintc__featured-articles-section {
    padding: 60px 0;
}

.page-tintc__dark-section {
    background-color: var(--primary-color);
}

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

.page-tintc__news-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

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

.page-tintc__dark-bg {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-tintc__dark-bg .page-tintc__news-card-title a,
.page-tintc__dark-bg .page-tintc__read-more-link {
    color: #ffffff;
}

.page-tintc__news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

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

.page-tintc__news-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.page-tintc__news-card-date {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.page-tintc__dark-bg .page-tintc__news-card-date {
    color: #cccccc;
}

.page-tintc__news-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tintc__read-more-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-tintc__read-more-link:hover {
    color: var(--secondary-color);
}

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

/* Categories Section */
.page-tintc__categories-section {
    padding: 60px 0;
}

.page-tintc__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.page-tintc__category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--text-black);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tintc__category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-tintc__category-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.page-tintc__category-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Call to Action Section */
.page-tintc__cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.page-tintc__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: -1;
}

.page-tintc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
}

.page-tintc__cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tintc__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-tintc__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-tintc__btn-secondary {
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-tintc__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
    color: var(--text-black);
}

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

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

.page-tintc__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 20px;
    color: var(--primary-color);
}

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

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

/* Responsive Styles */

/* General images and containers for mobile */
.page-tintc img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-tintc__section,
.page-tintc__card,
.page-tintc__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Buttons responsive styles */
.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%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-tintc__cta-buttons,
.page-tintc__button-group,
.page-tintc__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-tintc__hero-content {
        padding: 30px 20px;
    }

    .page-tintc__main-title {
        font-size: 3rem;
    }

    .page-tintc__section-title {
        font-size: 2rem;
    }

    .page-tintc__news-grid,
    .page-tintc__featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-tintc__categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .page-tintc__cta-section {
        padding: 60px 0;
    }

    .page-tintc__faq-item summary {
        font-size: 1rem;
        padding: 18px 22px;
    }

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

@media (max-width: 768px) {
    .page-tintc {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section - Mobile */
    .page-tintc__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
    }

    .page-tintc__hero-image {
        object-fit: contain !important; /* Contain for mobile, no cropping */
        max-height: 400px; /* Limit height on mobile */
        aspect-ratio: unset !important;
    }

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

    .page-tintc__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-tintc__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }

    /* Section Titles - Mobile */
    .page-tintc__section-title {
        font-size: 1.8rem;
        padding-top: 30px;
    }

    .page-tintc__section-description {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* News Grid - Mobile */
    .page-tintc__news-grid,
    .page-tintc__featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .page-tintc__news-card {
        margin: 0 15px;
    }

    .page-tintc__news-card-image {
        height: 180px;
    }

    .page-tintc__news-card-title {
        font-size: 1.2rem;
    }

    .page-tintc__news-card-date,
    .page-tintc__news-card-excerpt {
        font-size: 0.9rem;
    }

    /* Categories Grid - Mobile */
    .page-tintc__categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: 20px 15px 0 15px;
    }

    .page-tintc__category-item {
        padding: 15px;
    }

    .page-tintc__category-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 10px;
    }

    .page-tintc__category-title {
        font-size: 1rem;
    }

    /* CTA Section - Mobile */
    .page-tintc__cta-section {
        padding: 50px 15px;
    }

    .page-tintc__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
        padding: 0 15px;
    }

    .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-wrap: wrap !important;
        gap: 10px;
    }

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

    .page-tintc__faq-list {
        margin: 20px 15px 0 15px;
    }

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

    .page-tintc__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* General mobile padding for content sections */
    .page-tintc__latest-news-section .page-tintc__container,
    .page-tintc__featured-articles-section .page-tintc__container,
    .page-tintc__categories-section .page-tintc__container,
    .page-tintc__faq-section .page-tintc__container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure all images in content sections are responsive */
    .page-tintc__news-card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-tintc__category-icon {
        max-width: 100% !important;
        width: auto !important; /* Allow auto width to scale with height */
        height: auto !important;
    }

    /* Ensure content containers don't cause overflow */
    .page-tintc__container {
        overflow-x: hidden;
    }
}

/* Color contrast fix classes */
.page-tintc__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-tintc__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}