/* --- Plugin Wrapper Style --- */
.container-tintuc {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    font-family: 'Inter', sans-serif; /* Đảm bảo font chữ áp dụng trong khu vực này */
    box-sizing: border-box;
}

.container-tintuc * {
    box-sizing: border-box;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Animation Classes */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

/* --- HEADER SECTION --- */
.container-tintuc .header-section {
    margin-bottom: 2rem;
}

.container-tintuc .section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #111827;
    padding-left: 1rem;
    margin: 0;
}

/* --- MAIN CARD LAYOUT --- */
.container-tintuc .main-card {
    background-color: #F2F2F2;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    min-height: 600px;
}

/* --- LEFT COLUMN (NEWS LIST) --- */
.news-column {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #f3f4f6;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    cursor: pointer;
    margin-bottom: 2rem;
    text-decoration: none;
    color: inherit;
}

.news-item:last-child {
    margin-bottom: 0;
}

/* Image Wrapper inside News Item */
.news-image-wrapper {
    width: 100%;
    height: 8rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    margin: 0; /* Fix WP default styles */
}

.news-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    z-index: 1;
}

.news-item:hover .news-image-overlay {
    background-color: transparent;
}

.news-item:hover .news-image-wrapper img {
    transform: scale(1.1);
}

/* Text content inside News Item */
.news-content {
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
}

.dot.blue { background-color: #3b82f6; }

.news-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.375;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
    margin-top: 0;
}

.news-item:hover .news-title {
    color: #2563eb;
}

.news-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* --- RIGHT COLUMN (HIGHLIGHT) --- */
.highlight-column {
    width: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-height: 300px;
}

.highlight-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
    margin: 0 !important;
}

.highlight-column:hover .highlight-bg {
    transform: scale(1.1);
}

.highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.highlight-column:hover .highlight-overlay {
    opacity: 1;
}

.badge-new {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: bounce 1s infinite;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.highlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1.5rem;
    width: 100%;
    transform: translateY(0.5rem);
    transition: transform 0.5s ease;
    z-index: 2;
}

.highlight-column:hover .highlight-content {
    transform: translateY(0);
}

.highlight-date {
    color: #d1d5db;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-left: 2px solid #ef4444;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
}

.highlight-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    margin-top: 0;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    margin-top: 0.5rem;
}

.btn-view-more svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s;
}

.highlight-column:hover .btn-view-more {
    color: #f87171;
}

.highlight-column:hover .btn-view-more svg {
    transform: translateX(4px);
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
    .container-tintuc .section-title { font-size: 2.25rem; }
    .news-column { padding: 2rem; }
    .highlight-content { padding: 2.5rem; }
    .highlight-date { font-size: 0.875rem; }
    .highlight-title { font-size: 2.25rem; }
    .highlight-column { min-height: 400px; }
}

@media (min-width: 1024px) {
    .container-tintuc .main-card {
        flex-direction: row; 
    }
    .news-column { width: 50%; }
    .highlight-column { 
        width: 50%; 
        min-height: auto;
    }
}

@media (min-width: 640px) {
    .news-item {
        flex-direction: row;
        align-items: flex-start;
    }
    .news-image-wrapper {
        width: 12rem;
    }
}