/* style/tin-tuc.css */

:root {
    --k8cc-primary-color: #FF8C1A;
    --k8cc-secondary-color: #FFA53A;
    --k8cc-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --k8cc-card-bg: #17191F;
    --k8cc-background: #0D0E12;
    --k8cc-text-main: #FFF3E6;
    --k8cc-border-color: #A84F0C;
    --k8cc-glow-color: #FFB04D;
    --k8cc-deep-orange: #D96800;
}

.page-tin-tuc {
    font-family: 'Arial', sans-serif;
    color: var(--k8cc-text-main); /* Default text color for the page */
    background-color: var(--k8cc-background); /* Inherited from body in shared.css, but setting here for safety */
}

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

/* Hero Section */
.page-tin-tuc__hero-section {
    padding-top: 10px; /* Small top padding, header offset handled by body in shared.css */
    padding-bottom: 60px;
    background: var(--k8cc-background);
    color: var(--k8cc-text-main);
}

.page-tin-tuc__hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.page-tin-tuc__hero-title {
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--k8cc-primary-color);
}

.page-tin-tuc__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--k8cc-text-main);
}

.page-tin-tuc__hero-cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

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

/* Buttons */
.page-tin-tuc__btn-primary,
.page-tin-tuc__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
}

.page-tin-tuc__btn-primary {
    background: var(--k8cc-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-tin-tuc__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-tin-tuc__btn-secondary {
    background: transparent;
    color: var(--k8cc-primary-color);
    border: 2px solid var(--k8cc-primary-color);
}

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

/* Section Titles & Descriptions */
.page-tin-tuc__section-title,
.page-tin-tuc__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--k8cc-primary-color);
}

.page-tin-tuc__section-description,
.page-tin-tuc__cta-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--k8cc-text-main);
}

/* News List Section */
.page-tin-tuc__news-list-section {
    padding: 60px 0;
    background: var(--k8cc-background);
}

.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: var(--k8cc-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-tin-tuc__card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-tin-tuc__card-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    overflow: hidden;
}

.page-tin-tuc__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

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

.page-tin-tuc__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--k8cc-primary-color);
    line-height: 1.4;
}

.page-tin-tuc__card-date {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-bottom: 15px;
}

.page-tin-tuc__card-summary {
    font-size: 1em;
    line-height: 1.6;
    color: var(--k8cc-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-tin-tuc__read-more {
    display: inline-flex;
    align-items: center;
    color: var(--k8cc-secondary-color);
    font-weight: 600;
    font-size: 1em;
}

.page-tin-tuc__read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-tin-tuc__news-card:hover .page-tin-tuc__read-more i {
    transform: translateX(5px);
}

.page-tin-tuc__view-all-button-wrapper {
    text-align: center;
    margin-top: 20px;
}

/* Call to Action Section */
.page-tin-tuc__cta-section {
    padding: 80px 0;
    background: var(--k8cc-deep-orange);
    color: #ffffff;
    text-align: center;
}

.page-tin-tuc__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-tin-tuc__cta-title {
    color: #ffffff;
    font-size: 2.8em;
    margin-bottom: 0;
}

.page-tin-tuc__cta-description {
    color: #f0f0f0;
    margin-bottom: 0;
}

/* General Image styles to prevent small icons */
.page-tin-tuc img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-tin-tuc__hero-title {
        font-size: 2.8em;
    }
    .page-tin-tuc__section-title,
    .page-tin-tuc__cta-title {
        font-size: 2em;
    }
    .page-tin-tuc__hero-container {
        flex-direction: column;
        text-align: center;
    }
    .page-tin-tuc__hero-content,
    .page-tin-tuc__hero-image {
        flex: 1 1 100%;
    }
    .page-tin-tuc__hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-tin-tuc__hero-section {
        padding-top: 10px !important; /* Small top padding, header offset handled by body in shared.css */
        padding-bottom: 40px;
    }
    .page-tin-tuc__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-tin-tuc__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-tin-tuc__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-tin-tuc__btn-primary,
    .page-tin-tuc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-tin-tuc__hero-image {
        order: -1; /* Image above text on mobile */
    }
    .page-tin-tuc__hero-side-image {
        border-radius: 8px;
    }

    .page-tin-tuc__section-title,
    .page-tin-tuc__cta-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-tin-tuc__section-description,
    .page-tin-tuc__cta-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-tin-tuc__news-list-section {
        padding: 40px 0;
    }
    .page-tin-tuc__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-tin-tuc__card-title {
        font-size: 1.2em;
    }
    .page-tin-tuc__card-content {
        padding: 20px;
    }
    .page-tin-tuc__card-image-wrapper {
        height: 180px;
    }

    .page-tin-tuc__cta-section {
        padding: 60px 0;
    }
    .page-tin-tuc__cta-title {
        font-size: 2em;
    }

    /* Universal image responsive styles for content area */
    .page-tin-tuc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset;
        min-height: unset;
        box-sizing: border-box !important;
    }
    .page-tin-tuc__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}