/* style/tintc.css */
.page-tintc {
    background-color: #FFFFFF; /* Main content background as per custom color rule */
    color: #333333; /* Default text color for contrast */
    font-family: sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-tintc__hero-section {
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 10px 20px 40px; /* Small top padding, more bottom padding */
    background-color: #017439; /* Use primary color for hero background */
    color: #FFFFFF; /* White text on primary background */
    overflow: hidden; /* Ensure no overflow */
}

.page-tintc__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain hero image width */
    margin-bottom: 20px;
}

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

.page-tintc__hero-content {
    max-width: 800px;
    width: 100%;
}

.page-tintc__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #FFFFFF; /* White for H1 on dark background */
    /* No fixed font-size, rely on clamp if needed, otherwise use responsive values */
}

.page-tintc__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0; /* Slightly off-white for description */
}

.page-tintc__hero-cta-button {
    display: inline-block;
    background-color: #C30808; /* Register/Login button color */
    color: #FFFFFF; /* Changed from #FFFF00 for better contrast */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 48px; /* Ensure button is not too small */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.page-tintc__hero-cta-button:hover {
    background-color: #a00606; /* Slightly darker red on hover */
}

/* News List Section */
.page-tintc__news-list-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #FFFFFF; /* White background for news section */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.page-tintc__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #017439; /* Primary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-tintc__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C30808; /* Red accent for underline */
    border-radius: 2px;
}

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

.page-tintc__news-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    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;
}

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

.page-tintc__news-image-wrapper {
    width: 100%;
    height: 225px; /* Fixed height for consistent image size in cards */
    overflow: hidden;
}

.page-tintc__news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min image size for card images */
    min-height: 200px; /* Min image size for card images */
}

.page-tintc__news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-tintc__news-title a {
    color: #017439; /* Primary color for news titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-tintc__news-title a:hover {
    color: #C30808; /* Red accent on hover */
}

.page-tintc__news-meta {
    font-size: 0.9rem;
    color: #777777;
    margin-bottom: 15px;
}

.page-tintc__news-excerpt {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow excerpt to take available space */
}

.page-tintc__read-more-button {
    display: inline-block;
    background-color: #017439; /* Primary color for read more button */
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 0.95rem;
    min-width: 120px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-tintc__read-more-button:hover {
    background-color: #005a2d; /* Darker green on hover */
}

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

.page-tintc__view-all-button {
    display: inline-block;
    background-color: #C30808; /* Red accent for view all button */
    color: #FFFFFF; /* Changed from #FFFF00 for better contrast */
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    min-width: 220px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.page-tintc__view-all-button:hover {
    background-color: #a00606;
}

/* CTA Section */
.page-tintc__cta-section {
    background-color: #017439; /* Primary color for CTA background */
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-tintc__cta-content {
    max-width: 700px;
    text-align: center;
}

.page-tintc__cta-title {
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-tintc__cta-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0;
}

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

.page-tintc__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-tintc__cta-button--register {
    background-color: #C30808; /* Register button color */
    color: #FFFFFF; /* Changed from #FFFF00 for better contrast */
}

.page-tintc__cta-button--register:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-tintc__cta-button--login {
    background-color: #C30808; /* Login button color */
    color: #FFFFFF; /* Changed from #FFFF00 for better contrast */
}

.page-tintc__cta-button--login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-tintc__cta-image-wrapper {
    width: 100%;
    max-width: 600px; /* Max width for CTA image */
    margin-top: 30px;
}

.page-tintc__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-tintc__cta-section {
        flex-direction: row; /* Image and content side-by-side on desktop */
        justify-content: center;
        text-align: left;
        padding: 80px 40px;
    }

    .page-tintc__cta-content {
        text-align: left;
    }

    .page-tintc__cta-buttons {
        justify-content: flex-start;
    }

    .page-tintc__cta-image-wrapper {
        margin-top: 0;
        margin-left: 40px; /* Spacing between content and image */
    }
}

@media (max-width: 768px) {
    .page-tintc__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-tintc__main-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem); /* Clamp for responsive H1 */
    }

    .page-tintc__hero-description {
        font-size: 1rem;
    }

    .page-tintc__news-list-section {
        padding: 30px 15px;
    }

    .page-tintc__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

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

    .page-tintc__news-image {
        max-width: 100%;
        height: auto; /* Ensure images are responsive and don't overflow */
    }

    .page-tintc__news-card {
        flex-direction: column;
    }

    .page-tintc__news-image-wrapper {
        height: auto; /* Allow height to adjust for mobile */
    }

    .page-tintc__cta-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Clamp for responsive CTA title */
    }

    .page-tintc__cta-description {
        font-size: 1rem;
    }

    /* Ensure all images within .page-tintc are responsive */
    .page-tintc img {
        max-width: 100%;
        height: auto;
    }
}