/* style/tin-tuc.css */

/* Base styles for the page content */
.page-tin-tuc {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for content area */
}

/* --- Hero Section --- */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    padding-bottom: 60px;
    background-color: #ffffff; /* Light background for the hero */
}

.page-tin-tuc__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 40px;
}

.page-tin-tuc__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-tin-tuc__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 title font size clamp */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for title */
}

.page-tin-tuc__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333333;
}

.page-tin-tuc__hero-image {
    flex: 1 1 45%;
    text-align: center;
    min-width: 300px;
}

.page-tin-tuc__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* --- CTA Buttons (General) --- */
.page-tin-tuc__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
    margin-top: 30px;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure buttons don't exceed container */
}

/* Specific colors for Register/Login from custom palette */
.page-tin-tuc__hero-section .page-tin-tuc__btn-primary { /* Register */
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}
.page-tin-tuc__hero-section .page-tin-tuc__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-tin-tuc__hero-section .page-tin-tuc__btn-secondary { /* Login */
    background-color: #C30808; /* Custom Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}
.page-tin-tuc__hero-section .page-tin-tuc__btn-secondary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* --- Section Titles & Descriptions --- */
.page-tin-tuc__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
}

.page-tin-tuc__section-description {
    font-size: 1.1rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* --- News List Section --- */
.page-tin-tuc__news-list-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Light background */
}

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

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

.page-tin-tuc__news-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-tin-tuc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-tin-tuc__news-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

.page-tin-tuc__news-card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}