.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 32px 0;
}
.category:not(.category-project) .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.category-grid .post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgb(0 169 239 / 8%);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(0 44 85 / 4%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.category-grid .post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgb(0 44 85 / 10%);
}
.category-grid .entry-image-link {
    overflow: hidden;
}
.category-grid .entry-image-link img {
    width: 100%;
    aspect-ratio: 1.7;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.category-grid .post:hover .entry-image-link img {
    transform: scale(1.04);
}
.category-grid .entry-header {
    padding: 18px 20px 0;
}
.category-grid .entry-title {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.35;
}
.category-grid .entry-title a {
    color: #002c55;
}
.category-grid .entry-content {
    padding: 0 20px;
}
.category-grid .entry-content p {
     margin-bottom: 15px;
    color: #595a5a;
    font-size: 16px;
    line-height: 1.5;
}
.category-grid .entry-footer {
    margin-top: auto;
    padding: 0 20px 18px;
}
a.category-card__more {
    display: inline-block;
    color: #00a9ef;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease;
}
a.category-card__more:hover {
        color: #002c55;
}
.category-card__more span {
    display: inline-block;
    margin-left: 12px;
    transition: transform 0.2s ease;
}
a.category-card__more:hover span {
    transform: translateX(3px);
}
.category-grid .entry-title a:hover,
.category-card__more:hover {
    color: #00a9ef;
}
.category:not(.category-project) .category-grid > .entry:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 46% 54%;
    grid-template-rows: auto 1fr auto;
}
.category:not(.category-project) .category-grid > .entry:first-child .entry-image-link {
    grid-area: 1 / 2 / 4 / 3;
}
.category:not(.category-project) .category-grid > .entry:first-child .entry-image-link img {
    height: 100%;
    aspect-ratio: auto;
}
.category:not(.category-project) .category-grid > .entry:first-child .entry-header {
    grid-area: 1 / 1;
    padding-top: 24px;
}
.category:not(.category-project) .category-grid > .entry:first-child .entry-content {
    grid-area: 2 / 1;
}
.category:not(.category-project) .category-grid > .entry:first-child .entry-footer {
    grid-area: 3 / 1;
    padding-bottom: 24px;
}
.category:not(.category-project) .category-grid > .entry:first-child .entry-title {
    font-size: 22px;
}
.category-featured-meta {
    margin-bottom: 10px;
    font-size: 11px;
}
.category-featured-meta time {
    padding-left: 20px;
    background: url('../../images/date.png') no-repeat left center / 14px 14px;
    color: #9299a5;
    font-size: 14px;
}
.category:not(.category-project) .category-grid > .entry:first-child:not(:has(> .entry-image-link)) {
    grid-template-columns: minmax(0, 1fr);
}
.category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-header,
.category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-content,
.category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-footer {
    padding-left: 20px;
    padding-right: 20px;
}
.category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-title {
    font-size: 18px;
}
.category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-content p,
.category:not(.category-project) .category-grid > .entry:not(:first-child) .category-card__more {
    font-size: 16px;
}

@media (max-width: 1200px) {
    .category-grid .entry-header {
        padding: 18px 15px 0;
    }

    .category-grid .entry-content {
        padding: 0 15px;
    }

    .category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-header, .category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-content, .category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .category-grid{
        gap:  20px;
    }
}

@media (max-width: 960px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    
}

@media (max-width: 600px) {
    .category-grid,
    .category:not(.category-project) .category-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .category:not(.category-project) .category-grid > .entry:first-child {
        display: flex;
    }
    .category:not(.category-project) .category-grid > .entry:first-child .entry-image-link img {
        height: auto;
        aspect-ratio: 1.7;
    }

    .category:not(.category-project) .category-grid > .entry:first-child .entry-title,
    .category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-title,
    .category-grid .entry-title{
        font-size: 17px !important;
    }

    .category:not(.category-project) .category-grid > .entry:not(:first-child) .entry-content p,
    .category-grid .entry-content p{
        font-size: 15px;
    }


    .category:not(.category-project) .category-grid > .entry:not(:first-child) .category-card__more{
        font-size: 14px;
    }

    .category-featured-meta time{
        display: none;
    }

    .category:not(.category-project) .category-grid > .entry:first-child .entry-header{
        padding-top: 7px !important;
    }
}
