.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: stretch;
}
.categories{
    display: flex;
    gap: 5px
}
.categories-posts{
    display: block;
}
.post-card {
    border-radius: 8px 8px 0px 0px;
    overflow: hidden;
    opacity: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-image {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.post-card:hover .card-image {
    transform: scale(1.05);
}
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #F2F2F2;
    padding: 1.5rem ;
    margin-top: -6px;
    border-radius: 0px 0px 25px 0px;
}
.card-footer{
    display: flex;
    margin-top: auto;
}
.card-category,
.card-title,
.card-description {
    flex-shrink: 0;
}
.part1{
    display: flex;
    background-color: #F2F2F2;
    width: 80%;
    padding: 1.5rem;
    border-radius: 0px 0px 25px 8px;
}
.part2{
    display: flex;
    width: 35%;
    padding:1.5rem;
    padding-left: 0px;
    justify-content: end;
}
.card-category {
    display: inline-block;
    background:white;
    color:black;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform:initial;
    letter-spacing: 0.05em;
    font-family: Inter;
}
.arrounded-color{
    background:#F2F2F2;
    height: max-content;
}
.arrounded-content{
    border-style: solid;
    border-width: 25px 0px 0px 25px;
    border-color:white;
    border-radius: 25px 0px 0px 0px;
}
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    font-family: Inter;
}
.card-title:hover , .card-category:hover {
    color:#9F131C;
}
.card-description {
    color: black;
    font-size: 0.95rem;
    line-height: 1.6;
    font-family: Inter;
    flex-grow: 1;
}
.read-more-btn {
    display: inline-flex;
    align-items: center;
    color:black;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    width: max-content;
}
.read-more-btn:hover {
    color: #9F131C !important;
    transform: translateX(4px);
}
.read-more-btn::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}
.read-more-btn:hover::after {
    transform: translateX(4px);
}
@media (max-width: 768px) {
    .part1{
        width: 50%;
    }
    /*start 1.5 element*/
    .case-studies-grid {
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .post-card {
        flex: 0 0 calc(100% / 1.5); /* 1,5elements */
        scroll-snap-align: start;
        height: auto;
    }
    /*the end*/
    .card-content {
        padding: 1.25rem;
    }
    .card-title {
        font-size: 1.125rem;
    }
}
@media (max-width: 480px) {
    .subtitle {
        font-size: 1rem;
    }
    .card-image {
        height: 160px;
    }
}
/* Query ≤ 370px */
@media (max-width: 370px) {
    .part1 {
        width: 40%;
    }
}