:root {
    --primary-color: #C61F1F;
    --secondary-color: #E53030;
    --card-bg-color: #2A1212;
    --background-color: #140C0C;
    --text-main-color: #FFF1E8;
    --border-color: #6A1E1E;
    --gold-color: #F3C54D;
    --deep-red-color: #7E0D0D;
    --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    --header-offset: 122px; /* Placeholder, body will handle this */
}

/* Base styles for the page-tintc scope */
.page-tintc {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small top padding for the first section */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-tintc__hero-section {
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    text-align: center;
    padding: 20px 15px 40px;
    max-width: 1390px; /* Boxed feel */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    margin-bottom: 20px;
}

.page-tintc__hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/5; /* For 1920x600 */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

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

.page-tintc__main-title {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted H1 size for better responsiveness */
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

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

.page-tintc__cta-button,
.page-tintc__promo-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 200px; /* Ensure button min size */
    text-align: center;
}

.page-tintc__cta-button:hover,
.page-tintc__promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-tintc__news-grid-section {
    padding: 40px 15px;
    max-width: 1390px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-tintc__section-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-tintc__section-title::before,
.page-tintc__section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background-color: var(--gold-color);
    transform: translateY(-50%);
}

.page-tintc__section-title::before {
    left: calc(50% - 100px);
}

.page-tintc__section-title::after {
    right: calc(50% - 100px);
}

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

.page-tintc__news-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-tintc__card-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistency, will be responsive */
    overflow: hidden;
}

.page-tintc__card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none; /* No color filters */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

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

.page-tintc__card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

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

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

.page-tintc__card-meta {
    font-size: 0.9rem;
    color: rgba(255, 241, 232, 0.7);
    margin-bottom: 15px;
}

.page-tintc__card-excerpt {
    font-size: 1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

.page-tintc__read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

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

.page-tintc__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.page-tintc__pagination-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--card-bg-color);
    color: var(--text-main-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.page-tintc__pagination-link--active {
    background-color: var(--primary-color);
    color: var(--text-main-color);
    pointer-events: none;
}

.page-tintc__pagination-link--next {
    width: auto;
    border-radius: 8px;
    padding: 0 15px;
}

.page-tintc__promo-section {
    background: var(--deep-red-color);
    padding: 50px 15px;
    text-align: center;
    max-width: 1390px;
    margin: 40px auto;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    box-sizing: border-box;
}

.page-tintc__promo-content {
    max-width: 700px;
}

.page-tintc__promo-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-tintc__promo-description {
    font-size: 1.1rem;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

.page-tintc__promo-image-wrapper {
    width: 100%;
    max-width: 600px;
}

.page-tintc__promo-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    filter: none; /* No color filters */
    min-width: 200px; /* Ensure min size */
    min-height: 200px; /* Ensure min size */
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-tintc__hero-section {
        flex-direction: column; /* Image first, then content on desktop too */
        padding-top: 30px; /* Adjust as needed */
    }

    .page-tintc__hero-image-wrapper {
        order: 0; /* Ensures image is always first */
    }

    .page-tintc__hero-content {
        order: 1; /* Ensures content is always second */
    }

    .page-tintc__news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-tintc__section-title::before {
        left: calc(50% - 200px); /* Longer lines for desktop */
        width: 100px;
    }

    .page-tintc__section-title::after {
        right: calc(50% - 200px); /* Longer lines for desktop */
        width: 100px;
    }

    .page-tintc__promo-section {
        flex-direction: row;
        text-align: left;
        justify-content: space-around;
        align-items: center;
        padding: 50px;
    }

    .page-tintc__promo-content {
        flex: 1;
        padding-right: 30px;
        text-align: left;
    }

    .page-tintc__promo-image-wrapper {
        flex: 0 0 400px; /* Fixed width for image on desktop */
    }
}

@media (max-width: 768px) {
    .page-tintc__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }

    .page-tintc__description {
        font-size: 1rem;
    }

    .page-tintc__section-title::before,
    .page-tintc__section-title::after {
        width: 30px; /* Shorter lines for mobile */
        left: calc(50% - 80px); /* Adjust position */
    }
    .page-tintc__section-title::after {
        right: calc(50% - 80px);
        left: auto; /* Reset left for after pseudo-element */
    }

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

    /* Ensure content area images are responsive and don't overflow */
    .page-tintc img {
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    .page-tintc__card-image-wrapper {
        height: auto; /* Allow height to adjust with aspect ratio */
        aspect-ratio: 16/9; /* Maintain aspect ratio for blog images */
    }

    .page-tintc__card-image-wrapper img {
        max-width: 100%; /* Ensure images inside cards are responsive */
        height: auto;
    }

    .page-tintc__promo-section {
        flex-direction: column;
    }
    .page-tintc__promo-content {
        padding-right: 0;
    }
}

@media (max-width: 549px) {
    .page-tintc__hero-section,
    .page-tintc__news-grid-section,
    .page-tintc__promo-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-tintc__section-title::before,
    .page-tintc__section-title::after {
        width: 20px; /* Even shorter lines for very small screens */
        left: calc(50% - 60px);
    }
    .page-tintc__section-title::after {
        right: calc(50% - 60px);
        left: auto;
    }
}

/* Ensure all content images within .page-tintc are at least 200x200px visually */
.page-tintc img:not(.shared-logo):not(.shared-icon) {
    min-width: 200px;
    min-height: 200px;
}
/* Override for card images where width is 100% and height auto, min-height will ensure minimal size */
.page-tintc__card-image-wrapper img {
    min- /* Adjusted slightly for card images in a grid context, but overall width will be >200 */
    min-width: 100%;
}

/* Specific rule to ensure images within content are not tiny */
.page-tintc__news-card .page-tintc__card-image-wrapper img {
    /* The card image wrapper ensures the image takes up a good portion of the card */
    /* And the minmax(280px, 1fr) for grid items ensures the card itself is wide enough */
    /* So, the image will be at least 280px wide, and its height will be proportional */
    /* This satisfies the 200x200 minimum. */
    width: 100%;
    height: 100%; /* Important for object-fit */
    object-fit: cover;
}