/* News Page Styles */

.news-main {
    /* margin-top: 80px; */
    min-height: 60vh;
}

/* Reuse hero styles from products.css but customized if needed */
.news-hero {
    background: url('/wp-content/themes/GlobalZT/assets/images/banner/blog-banner.webp') no-repeat scroll center/cover;
    color: #fff;
    padding: 100px 0;
    position: relative;
    /* text-align: center; */
}
@media (max-width: 768px){
.news-hero {
    background: url('/wp-content/themes/GlobalZT/assets/images/banner/mb-blog-banner.webp') no-repeat scroll center/cover;
    /* text-align: center; */
}
}
.news-hero .container{
    position: relative;
    z-index: 3;
}
.news-hero .bg-featured-products{
    display: none;
}
.news-hero::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
@media (min-width: 991px){
    .news-hero{
        background: none;
        padding: 0;
            display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }
    .news-hero .bg-featured-products{
        aspect-ratio: 1920 / 500;
        display: block;
    }
    .news-hero .container{
        position: absolute;
        width: 100%;
    }
}
.news-hero-title {
    font-size: 38px;
    font-weight: 800;
    /* margin-bottom: 15px; */
}

.news-hero-desc {
    font-size: 16px;
    opacity: 0.9;
    /*max-width: 600px;*/
    /* margin: 0 auto; */
}
@media (max-width: 1281px){
    .news-hero-title{
        font-size: 36px;
    }
    .news-hero-desc{
        font-size: 16px;
    }
}
/* News List Layout */
.news-layout {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.news-layout-container {
    display: grid;
    /* grid-template-columns: 280px 1fr; */
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
}

.news-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* .news-main-content {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow);
} */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Placeholders for news images */
.news-img-1 { background-image: linear-gradient(45deg, #eef2ff, #cfd8ff); }
.news-img-2 { background-image: linear-gradient(45deg, #fff0f0, #ffcfcf); }
.news-img-3 { background-image: linear-gradient(45deg, #f0fff4, #cfffd8); }
.news-img-4 { background-image: linear-gradient(45deg, #fff9f0, #ffecce); }
.news-img-5 { background-image: linear-gradient(45deg, #f5f0ff, #e4ceff); }

.news-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(31, 46, 127, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-tag {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: block;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    flex: 1; /* Pushes the link to bottom */
}

.news-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.page-link:hover,
.page-link.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 1024px) {
    .news-layout-container {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        position: static;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .news-hero {
        padding: 120px 0 60px;
        /*aspect-ratio: 1920 / 1080;*/
    }
.news-hero .container{
    height: 100%;
}
.eyebrow{
    font-size: 10px;
}
    .news-hero-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
.news-hero-desc{
    font-size: 11px;
}
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar block styles reused/overwritten if common.css not sufficient or specific */
.sidebar-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.sidebar-block ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-block ul a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    transition: var(--transition);
}

.sidebar-block ul li {
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef2ff;
    transition: var(--transition);
}

.sidebar-block ul li:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.sidebar-block ul a:hover {
    color: var(--primary-color);
}

