.custom-cpt-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers last row if it has fewer than 4 items */
    gap: 20px; /* Space between grid items */
    margin-top: 20px;
}

.cpt-item {
    flex: 1 1 calc(33% - 20px); /* Each item takes up 25% width with gap accounted */
    max-width: calc(33% - 20px);
    padding: 15px;

    transition: transform 0.3s ease-in-out;

    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.cpt-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.cpt-item:hover {
    transform: translateY(-5px);
}

.cpt-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.cpt-item a:hover {
    color: #005177;
}


.cpt-position {
    font-size: 20px;
    line-height: normal;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cpt-item {
        flex: 1 1 calc(33.33% - 20px); /* 3 per row on medium screens */
        max-width: calc(33.33% - 20px);
    }
}

@media (max-width: 768px) {
    .cpt-item {
        flex: 1 1 calc(50% - 20px); /* 2 per row on tablets */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .cpt-item {
        flex: 1 1 100%; /* 1 per row on small screens */
        max-width: 100%;
    }
}
