/* style/tin-tuc.css */

/* Base Styles */
.page-tin-tuc {
    font-family: 'Arial', sans-serif;
    color: #F3F8FF; /* Default text color for the page, light on dark body */
    background-color: transparent; /* Body background is handled by shared.css */
}

.page-tin-tuc__container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

.page-tin-tuc__section-title,
.page-tin-tuc__main-title {
    color: #F3F8FF;
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(28px, 4vw, 42px); /* H1 font size with clamp */
    font-weight: 700;
    line-height: 1.2;
}

.page-tin-tuc__section-description,
.page-tin-tuc__description {
    color: #AFC4E8;
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-tin-tuc__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary,
.page-tin-tuc__read-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile button adaptation */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-tin-tuc__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__btn-primary:hover {
    background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-tin-tuc__btn-secondary {
    background: transparent;
    color: #F3F8FF;
    border: 2px solid #244D84;
}

.page-tin-tuc__btn-secondary:hover {
    background-color: #244D84;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-tin-tuc__read-more-btn {
    background: #4FA8FF;
    color: #08162B; /* Dark text on bright button */
    border: none;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 5px;
}

.page-tin-tuc__read-more-btn:hover {
    background: #2B73F6;
    color: #ffffff;
}

/* HERO Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08162B; /* Match body background */
}

.page-tin-tuc__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 16px;
    flex-wrap: wrap; /* For responsiveness */
}

.page-tin-tuc__hero-content {
    flex: 1 1 50%;
    min-width: 300px;
    text-align: left;
}

.page-tin-tuc__hero-image {
    flex: 1 1 40%;
    text-align: center;
}

.page-tin-tuc__hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-tin-tuc__news-card {
    background-color: #10233F;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-tin-tuc__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-tin-tuc__news-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    overflow: hidden;
}

.page-tin-tuc__news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover .page-tin-tuc__news-thumbnail img {
    transform: scale(1.05);
}

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

.page-tin-tuc__news-date {
    font-size: 14px;
    color: #AFC4E8;
    margin-bottom: 10px;
    display: block;
}

.page-tin-tuc__news-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

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

.page-tin-tuc__news-title a:hover {
    color: #F2C14E;
}

.page-tin-tuc__news-excerpt {
    font-size: 16px;
    color: #AFC4E8;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Pagination */
.page-tin-tuc__pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.page-tin-tuc__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #10233F;
    color: #F3F8FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #244D84;
}

.page-tin-tuc__page-link:hover,
.page-tin-tuc__page-link.is-active {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: #ffffff;
    border-color: transparent;
}

/* CTA Section (Bottom) */
.page-tin-tuc__cta-section {
    padding: 80px 0;
    background-color: #08162B;
}

.page-tin-tuc__cta-section .page-tin-tuc__container {
    background-color: #10233F;
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-tin-tuc__cta-title {
    font-size: clamp(24px, 3.5vw, 36px);
    color: #F3F8FF;
    margin-bottom: 15px;
}

.page-tin-tuc__cta-description {
    font-size: 18px;
    color: #AFC4E8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tin-tuc__hero-content {
        text-align: center;
    }
    .page-tin-tuc__hero-image {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    .page-tin-tuc__hero-container {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-tin-tuc__main-title {
        font-size: 30px;
        margin-bottom: 15px;
    }
    .page-tin-tuc__description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-tin-tuc__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container of buttons */
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary,
    .page-tin-tuc__read-more-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;
    }

    /* News List Section */
    .page-tin-tuc__news-list-section {
        padding: 40px 0;
    }
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
        margin-top: 30px;
    }
    .page-tin-tuc__news-card {
        margin: 0 15px; /* Add horizontal margin to cards */
    }
    .page-tin-tuc__news-thumbnail {
        height: 180px; /* Adjust height for mobile */
    }
    .page-tin-tuc__news-title {
        font-size: 18px;
    }
    .page-tin-tuc__news-excerpt {
        font-size: 15px;
    }

    /* Pagination */
    .page-tin-tuc__pagination {
        margin-top: 30px;
    }
    .page-tin-tuc__page-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* CTA Section (Bottom) */
    .page-tin-tuc__cta-section {
        padding: 60px 0;
    }
    .page-tin-tuc__cta-section .page-tin-tuc__container {
        padding: 40px 20px;
        margin: 0 15px; /* Add horizontal margin */
    }
    .page-tin-tuc__cta-title {
        font-size: 26px;
    }
    .page-tin-tuc__cta-description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* General image and container adaptation for mobile */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-tin-tuc__container,
    .page-tin-tuc__news-card,
    .page-tin-tuc__cta-section .page-tin-tuc__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-tin-tuc__news-card {
        padding: 0; /* Remove padding if added by general container rule, cards have their own padding */
    }
}