.news-page {
    padding: 100px 0;
    background-color: #fff;
}

.news-page__header {
    text-align: left;
    margin-bottom: 60px;
    width: 100%;
}

.news-page__title {
    color: #05ACDD;
}

.news-page__text {
    color: #666666;
    max-width: 100%
}

.news-page__text p {
    margin-bottom: 20px;
}

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

/* Categories Filter */
.news-page__categories {
    margin-bottom: 60px;
    width: 100%;
}

.news-page__categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.news-page__category-link {
    display: inline-block;
    padding: 20px 60px;
    background-color: #f5f5f5;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    font-size: 21px;
    border-radius: 0;
    transition: all 300ms ease;
    white-space: nowrap;
    
}

.news-page__category-link:hover,
.news-page__category-link.active {
    background-color: #05ACDD;
    color: #fff;
}

/* First category link styling */
.news-page__category-link:first-child {
    border-radius: 50px 0 0 50px;
}

/* Last category link styling */
.news-page__category-link:last-child {
    border-radius: 0 50px 50px 0;
}

/* Single category link styling (when only one exists) */
.news-page__category-link:first-child:last-child {
    border-radius: 50px;
}

/* Posts Grid */
.news-page__posts {
    margin-bottom: 60px;
    width: 100%;
}

.news-page__posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    width: 100%;
}

.news-page__post-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0px;
    padding: 0px;
    background: #36C166;
    border-radius: 50px;
    transition: transform 300ms ease, box-shadow 300ms ease;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.news-page__post {
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.news-page__post:hover {
    transform: translateY(-5px);
}

.news-page__post-image {
    flex: 0 0 auto;
    width: 100%;
    height: 250px;
    display: flex;
    position: relative;
    overflow: hidden;
}

.news-page__post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 300ms ease;
    position: absolute;
}

.news-page__post:hover .news-page__post-image img {
    transform: scale(1.05);
}

.news-page__post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    width: 100%;
    text-align: left;
}

.news-page__post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 5px;
}

.news-page__post-category {
    display: inline-block;
    padding: 0;
    background-color: transparent;
    color: #222B6B;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0;
}

.news-page__post-title {
    color: #FFF;
    margin-bottom: 0;
    font-size: 32px;
}

.news-page__post-title a {
    color: #FFF;
    text-decoration: none;
    transition: color 300ms ease;
}

.news-page__post-title a:hover {
    color: #F3EE1A;
}

.news-page__read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #F3EE1A;
    font-size: 30px;
    transition: all 300ms ease;
    cursor: pointer;
    text-decoration: underline;
}

.news-page__read-more:hover {
    color: #FFF;
}

.news-page__no-posts {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Pagination */
.news-page__pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
}

.news-page__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-page__pagination .page-numbers li {
    margin: 0;
}

.news-page__pagination .page-numbers a,
.news-page__pagination .page-numbers span {
    display: inline-block;
    padding: 12px 20px;
    background-color: #f5f5f5;
    color: #666666;
    text-decoration: none;
    font-weight: 500;
    border-radius: 15px;
    transition: all 300ms ease;
    min-width: 60px;
    text-align: center;
}

.news-page__pagination .page-numbers a:hover,
.news-page__pagination .page-numbers .current {
    background-color: #05ACDD;
    color: #fff;
}

/* Responsive styles */
@media (max-width: 1440px) {
    .news-page__category-link {
        padding: 15px 40px;
        font-size: 19px;
    }
    .news-page__post-content{
        padding: 30px;
    }
}

@media (max-width: 1024px) {
    .news-page__posts-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-page {
        padding: 60px 0;
    }
    
    .news-page__posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-page__post-content {
        padding: 30px;
    }
    
    .news-page__read-more {
        font-size: 20px;
    }
    
    .news-page__post-title {
        font-size: 24px;
    }
    
    .news-page__categories-container {
        gap: 10px;
    }
    
    .news-page__category-link {
        font-size: 18px;
        padding: 14px 28px;
    }
    
    .news-page__post-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
	.news-page__post-link{
		    border-radius: 30px;
	}
    .news-page__post-content {
        padding: 20px;
    }
    
    .news-page__read-more {
        font-size: 18px;
    }
    
    .news-page__post-title {
        font-size: 20px;
    }
    
    .news-page__post-category {
        font-size: 14px;
    }
    
    .news-page__category-link {
        font-size: 16px;
        padding: 14px 25px;
    }
}