/*
Theme Name: Itfirm Child
Theme URI: http://demo.casethemes.net/itfirm/
Author: Case-Themes
Author URI: https://themeforest.net/user/case-themes/portfolio/
Description: Itfirm Child theme
Version: 1.0.0
License: ThemeForest
License URI: https://themeforest.net/licenses
Text Domain: itfirm
Template: itfirm
*/

/* Custom Widget: Technology Expertise */
.ct-technology-expertise .item--inner {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    margin: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Animations */
.ct-hover-anim-translateY .item--inner:hover {
    transform: translateY(-10px);
}

.ct-hover-anim-scale .item--inner:hover {
    transform: scale(1.03);
}

.ct-hover-anim-none .item--inner:hover {
    transform: none;
}

.ct-technology-expertise .item--title {
    font-size: 24px;
    font-weight: 700;
    color: #191919;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.ct-technology-expertise .item--desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.ct-technology-expertise .item--tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.ct-technology-expertise .tech--item {
    text-align: center;
    width: 80px;
    padding: 15px 5px;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.ct-technology-expertise .tech--item:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.ct-technology-expertise .tech--icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-technology-expertise .tech--icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ct-technology-expertise .tech--title {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    display: block;
}

/* Slick Carousel Styling */
.ct-technology-expertise .ct-slick-carousel {
    margin: 0 -15px;
}

.ct-technology-expertise .slick-slide {
    padding: 0 15px;
}

.ct-technology-expertise .slick-arrow {
    position: absolute;
    top: 30%;
    z-index: 1;
    transform: translateY(-50%);
    margin: 0 auto;
}
.ct-technology-expertise .slick-arrow.slick-prev {
    left: -5px;
    right: auto;
}
.ct-technology-expertise .slick-arrow.slick-next {
    right: -5px;
    left: auto;
}

/* =========================================
   Post Carousel & Post Grid Common Styles
   ========================================= */
.ct-post-carousel .ct-slick-carousel {
    margin: 0 -15px;
}

.ct-post-carousel .slick-slide {
    padding: 0 15px;
}

.ct-post-carousel .item--inner,
.ct-post-grid .item--inner {
    background-color: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    transform: translateZ(0); /* Fix for border-radius on hover */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Fix for Safari */
}

.ct-post-carousel .item--image,
.ct-post-grid .item--image {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.ct-post-carousel .item--image img,
.ct-post-grid .item--image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ct-post-carousel .item--inner:hover .item--image img,
.ct-post-grid .item--inner:hover .item--image img {
    transform: scale(1.05);
}

.ct-post-carousel .item--content,
.ct-post-grid .item--content {
    padding: 0 25px 30px;
}

.ct-post-carousel .item--title,
.ct-post-grid .item--title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.4;
    color: #1a1a1a;
}

.ct-post-carousel .item--title a,
.ct-post-grid .item--title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ct-post-carousel .item--title a:hover,
.ct-post-grid .item--title a:hover {
    color: var(--primary-color, #0056b3);
}

.ct-post-carousel .item--desc,
.ct-post-grid .item--desc {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.ct-post-carousel .item--readmore,
.ct-post-grid .item--readmore {
    margin-top: auto;
}

.ct-post-carousel .item--readmore a,
.ct-post-grid .item--readmore a {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color, #0056b3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.ct-post-carousel .item--readmore a i,
.ct-post-grid .item--readmore a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.ct-post-carousel .item--readmore a:hover i,
.ct-post-grid .item--readmore a:hover i {
    transform: translateX(5px);
}

/* Hover Animations */
.ct-hover-anim-translateY .item--inner:hover {
    transform: translateY(-10px);
}

.ct-hover-anim-scale .item--inner:hover {
    transform: scale(1.03);
}

.ct-hover-anim-none .item--inner:hover {
    transform: none;
}


/* Force Fancy Box to fill full column height */
.ct-fancy-box-layout9 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ct-fancy-box-layout9 .item--inner {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ct-fancy-box-layout9 .item--button {
    margin-top: auto;
}