/* Beautified Home News Section */
.home-news-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.home-news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.home-news-item {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.home-news-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: var(--shadow-md);
    border-color: rgba(231, 111, 81, 0.2);
    /* Subtle primary border */
}

/* Add a subtle accent bar on the left */
.home-news-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.home-news-item:hover::before {
    transform: scaleY(1);
}

.home-news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #eee;
    color: var(--secondary);
    font-family: var(--font-heading);
    line-height: 1;
}

.home-news-date span:first-child {
    font-size: 0.8rem;
    font-weight: 500;
}

.home-news-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.home-news-title {
    flex-grow: 1;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1.05rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s;
}

.home-news-item:hover .home-news-title {
    color: var(--primary-dark);
}

.home-news-item i {
    color: #ccc;
    transition: transform 0.3s, color 0.3s;
}

.home-news-item:hover i {
    color: var(--primary);
    transform: translateX(5px);
}

/* More News Button */
.btn-more-news {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-more-news:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 111, 81, 0.3);
}

.btn-more-news i {
    transition: transform 0.3s ease;
}

/* News Detail: reading progress bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 2001;
}

.reading-progress {
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width 0.1s ease-out;
}

/* News Detail: click-to-enlarge image lightbox */
.news-body img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(38, 70, 83, 0.85);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 2500;
}

.overlay-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.news-body img.img-enlarged {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    z-index: 2501;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    cursor: zoom-out;
}
