/**

 * Theme Name:     TC Agency
 * Author:         TC Agency
 * Template:       hello-elementor
 * Text Domain:	   tc-agency
 * Description:    TC Agency theme.
 */

.cpt-categories {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 20px;
}

.cpt-categories a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px !important;
    border-radius: 10px;
    background-color: #1A0D29;
    color: #c5dc67;

 
    flex: 0 0 calc(25% - 35px);
    box-sizing: border-box;
    padding: 30px;
    text-align: center;
}
.cpt-categories a.current {
    background-color: #c5dc67;
    color: #1A0D29;
}



/**
* Projects Grid
*
*/

#clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 190px;
    gap: 25px;
}
#clients-grid .grid-item {
    position: relative;
    min-height: 380px;
    max-height: 380px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}
#clients-grid .grid-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.35s ease, transform 0.45s ease;
    pointer-events: none;
}
#clients-grid .grid-item:nth-child(3n+2) {
    margin-top: -190px !important;
}
#clients-grid .grid-item:nth-child(3n) {
    margin-top: -80px !important;
}
#clients-grid .grid-item figure {
    width: 100%;
    height: 100%;
    margin: 0;
}
figure img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}
#clients-grid .grid-item .name {
    position: absolute;
    left: 25px;
    bottom: 40px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}
#clients-grid .grid-item .description {
    position: absolute;
    left: 25px;
    bottom: 25px;
    color: #fff;
    font-weight: 400;
    font-size: 12px;
}
#clients-grid:hover .grid-item:not(:hover):before,
#clients-grid.modal-open .grid-item:not(.is-open):before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%),
                linear-gradient(0deg, rgba(59, 29, 92, 0.8), rgba(59, 29, 92, 0.8));

    opacity: 1;
    transform: scale(1.05);
}

#project-categories {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    padding: 0 45px;
}
#project-categories .modal-link {
    display: block;
    background: #FFFFFF99;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    border-radius: 15px;
    padding: 8px;
    font-size: 14px;
}

#elementor-popup-modal-1862 .dialog-widget-content {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}