/* News Section Redesign */
.news-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
}

.news-tagline {
    display: inline-block;
    color: var(--stone-beige);
    /* Gold */
    font-size: 14px;
    font-weight: var(--theme-heading-weight) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.news-headline {
    font-size: 42px;
    font-weight: var(--theme-heading-weight) !important;
    color: var(--theme-heading, var(--theme-primary));
    /* Navy */
    margin-bottom: 50px;
}

.news-card {
    background: var(--theme-body-bg, #ffffff);
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(var(--theme-primary-rgb, 30, 61, 51), 0.05);
    transition: all 0.4s ease;
    text-decoration: none;
    border: 1px solid var(--theme-border-color, var(--theme-primary));
    position: relative;
    z-index: 1;
}

.news-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--theme-primary);
    /* Navy Background */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(var(--theme-primary-rgb, 30, 61, 51), 0.15);
    border-color: transparent;
}

.news-card:hover::before {
    height: 100%;
}

.news-card-image-wrap {
    position: relative;
    padding: 15px 15px 0 15px;
    z-index: 2;
    /* Ensure image is above background fill */
}

.news-card-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.03);
}

.news-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    /* Ensure content is above background fill */
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.news-category {
    background: rgba(var(--theme-primary-rgb, 30, 61, 51), 0.05);
    color: var(--theme-primary);
    font-size: 13px;
    font-weight: var(--theme-body-weight) !important;
    padding: 5px 15px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.news-card:hover .news-category {
    background: var(--theme-accent);
    color: var(--theme-body-bg, #ffffff);
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-body-color, #5f6c7b);
    font-size: 14px;
    font-weight: var(--theme-body-weight) !important;
    transition: all 0.3s ease;
}

.news-card:hover .news-date {
    color: rgba(255, 255, 255, 0.8);
}

.news-date i {
    color: var(--theme-accent);
}

.news-title {
    font-size: 20px;
    font-weight: var(--theme-heading-weight) !important;
    color: var(--theme-heading, var(--theme-primary));
    line-height: 1.4;
    margin-bottom: 5px;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--theme-body-bg, #ffffff);
}

.news-excerpt {
    font-size: 14px;
    color: var(--theme-body-color, #5f6c7b);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: var(--theme-body-weight) !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.news-card:hover .news-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.news-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.news-author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.news-author-name {
    font-size: 14px;
    font-weight: var(--theme-body-weight) !important;
    color: #5f6c7b;
}

.news-author-name span {
    color: var(--stone-green);
}

.news-all-btn-wrap {
    margin-top: 60px;
}

.btn-news-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--theme-primary);
    color: var(--theme-body-bg, #ffffff) !important;
    padding: 15px 40px;
    border-radius: 10px;
    font-weight: var(--theme-heading-weight) !important;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-news-all:hover {
    background: var(--theme-accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--theme-accent-rgb, 186, 166, 141), 0.2);
}

/* Responsive adjustment */
@media (max-width: 991px) {
    .news-headline {
        font-size: 32px;
    }
}