/* Index Page Styles */

/* Contact Text Button Styles */
@media (min-width: 992px) {
    .contact-text .btn {
        min-width: 160px !important;
        width: auto !important;
    }
}

/* Equal height cards for portfolio and blog */
.portfolio-grid .portfolio-item,
.blog-grid .post-item {
    height: 100%;
}

.portfolio-grid .portfolio-item__img,
.blog-grid .post-item__img {
    height: 250px;
    overflow: hidden;
}

.portfolio-grid .portfolio-item__img img,
.blog-grid .post-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-grid .portfolio-item__content,
.blog-grid .post-item__content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-grid .portfolio-item__desc,
.blog-grid .post-item__desc {
    flex-grow: 1;
    min-height: 60px;
}

/* Blog Grid with Sidebar Label on each item */
.post-item-with-label {
    position: relative;
    padding-left: 50px;
}

.post-item__sidebar-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 129, 0.1);
    border-left: 3px solid rgba(0, 200, 129, 0.3);
    z-index: 1;
}

.post-item__sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #00c881;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .blog-grid .col-sm-12,
    .blog-grid .col-md-4 {
        margin-bottom: 30px;
    }
    
    .post-item-with-label {
        padding-left: 0;
        padding-top: 40px;
        margin-bottom: 0;
    }
    
    .post-item__sidebar-label {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
        height: 35px;
        border-left: none;
        border-top: 3px solid rgba(0, 200, 129, 0.3);
    }
    
    .post-item__sidebar-text {
        writing-mode: horizontal-tb;
        text-orientation: unset;
        transform: none;
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    
    .post-item__content {
        padding-bottom: 20px;
    }
    
    .post-item__content .btn__link {
        margin-top: 20px !important;
        margin-bottom: 0;
    }
}

/* Portfolio Grid with Sidebar Label on each item */
.portfolio-item-with-label {
    position: relative;
    padding-left: 50px;
}

.portfolio-item__sidebar-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 43, 92, 0.08);
    border-left: 3px solid #0e2b5c;
    z-index: 1;
}

.portfolio-item__sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #0e2b5c;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transform: rotate(180deg);
}

/* Responsive adjustments for portfolio */
@media (max-width: 991px) {
    .portfolio-grid .col-sm-12,
    .portfolio-grid .col-md-4 {
        margin-bottom: 30px;
    }
    
    .portfolio-item-with-label {
        padding-left: 0;
        padding-top: 40px;
        margin-bottom: 0;
    }
    
    .portfolio-item__sidebar-label {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        width: 100%;
        height: 35px;
        border-left: none;
        border-top: 3px solid #0e2b5c;
    }
    
    .portfolio-item__sidebar-text {
        writing-mode: horizontal-tb;
        text-orientation: unset;
        transform: none;
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    
    .portfolio-item__content {
        padding-bottom: 20px;
    }
    
    .portfolio-item__content .btn__bordered {
        margin-top: 20px !important;
        margin-bottom: 0;
    }
}

/* Activities and News grid card style */
.portfolio-grid .portfolio-item--tugcan,
.blog-grid .post-item--tugcan {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #eef1f4;
    box-shadow: 0 10px 25px rgba(16, 24, 40, 0.06);
    position: relative;
}

.portfolio-grid .portfolio-item--tugcan .portfolio-item__img,
.blog-grid .post-item--tugcan .post-item__img {
    height: 280px;
    overflow: hidden;
}

.portfolio-grid .portfolio-item--tugcan .portfolio-item__img img,
.blog-grid .post-item--tugcan .post-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-grid .portfolio-item--tugcan .portfolio-item__content,
.blog-grid .post-item--tugcan .post-item__content {
    position: relative;
    padding: 24px 24px 24px 64px;
    text-align: left;
}

.portfolio-grid .portfolio-item--tugcan .portfolio-item__title,
.blog-grid .post-item--tugcan .post-item__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 6px;
    color: #0b0f19;
}

.portfolio-grid .portfolio-item--tugcan .btn__link,
.blog-grid .post-item--tugcan .btn__link {
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    align-self: flex-start;
}

.portfolio-grid .portfolio-item--tugcan .card-label,
.blog-grid .post-item--tugcan .card-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #edf0f4;
    background: #ffffff;
}

.portfolio-grid .portfolio-item--tugcan .card-label__text,
.blog-grid .post-item--tugcan .card-label__text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #c3c9d3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .portfolio-grid .portfolio-item--tugcan .portfolio-item__img,
    .blog-grid .post-item--tugcan .post-item__img {
        height: 220px;
    }

    .portfolio-grid .portfolio-item--tugcan .card-label,
    .blog-grid .post-item--tugcan .card-label {
        display: none;
    }

    .portfolio-grid .portfolio-item--tugcan .portfolio-item__content,
    .blog-grid .post-item--tugcan .post-item__content {
        padding-left: 24px;
    }
}

.clients .slick-list {
    cursor: grab;
}

.clients .slick-list:active,
.clients .slick-list:focus {
    cursor: grabbing;
}

.clients .slick-arrow {
    display: none !important;
}
