/*
 * Plugin Name: CT Updates
 * Description: Custom styles for the CT Updates plugin.
 */

/* Service Slider */
.ct-service-slider-container {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.ct-service-slider {
    overflow: visible !important;
}

/* Group hover opacity dimming */
.ct-service-slider-wrapper:hover .ct-service-slide:not(:hover) {
    opacity: 0.3;
}

.ct-service-slide {
    display: block;
    text-decoration: none !important;
    transition: 0.3s linear all;
    height: auto;
}

/* Image Container */
.ct-service-image-container {
    position: relative;
    border-radius: 15px;
    padding: 5px;
    /* Border thickness */
    background: transparent;
    transition: background 0.3s ease;
    margin-bottom: 20px;
}

.ct-service-slide:hover .ct-service-image-container {
    background: linear-gradient(135deg, #FFFFD3 0%, #8E8454 25%, #FFFFD3 50%, #8E8454 75%, #FFFFD3 100%);
}

.ct-service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px !important;
    /* Inner radius */
    display: block;
}

/* Content */
.ct-service-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-service-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ct-heading-color, #fff);
}

.ct-service-title {
    font-family: "Familjen Grotesk", sans-serif;
    font-style: normal;
    font-size: 24px;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .ct-service-title {
        font-size: 32px;
    }
}

.ct-service-title p,
.ct-service-title h1,
.ct-service-title h2,
.ct-service-title h3,
.ct-service-title h4,
.ct-service-title h5,
.ct-service-title h6 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    font-family: inherit;
}

.ct-service-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-top: 6px;

}

.ct-service-slide:hover .ct-service-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--ct-text-color, #ccc);
}

.ct-service-desc {
    font-family: "Familjen Grotesk", sans-serif;
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ct-text-color, #ccc);
}

@media (min-width: 1024px) {
    .ct-service-desc {
        font-size: 16px;
    }
}

.ct-service-desc p {
    margin: 0 0 10px 0;
    color: inherit;
}

.ct-service-desc p:last-child {
    margin-bottom: 0;
}

/* Controls */
.ct-service-slider-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

@media (min-width: 1024px) {
    .ct-service-slider-controls {
        margin-top: 50px;
    }
}

.ct-service-slider-nav {
    display: flex;
    gap: 10px;
}

.ct-service-slider-button-prev,
.ct-service-slider-button-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ct-service-slider-button-prev:hover,
.ct-service-slider-button-next:hover {
    background: #444;
}

.ct-service-slider-button-prev.swiper-button-disabled,
.ct-service-slider-button-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Custom Scrollbar */
.ct-service-slider-controls .ct-service-slider-scrollbar {
    flex-grow: 1;
    height: 2px;
    background: #2a2a2a;
    border-radius: 2px;
    position: relative;
}

.ct-service-slider-controls .swiper-scrollbar-drag {
    background: #fff;
    border-radius: 2px;
    cursor: grab;
}

.ct-home-services-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 0;
    padding: 60px 0px;
    overflow: visible;
}

.ct-home-services-slider {
    overflow: visible !important;
}

.ct-home-services-slider .swiper-slide {
    width: 320px;
    height: auto;
    display: flex;
}

.ct-home-service-card {
    background: #ffffff;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: box-shadow 0.3s ease;
}

.ct-home-service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.ct-home-service-icon {
    width: 50px;
    height: 50px;
    background-color: #FFFFD3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ct-home-service-icon img {
    width: 24px;
    height: auto;
    object-fit: contain;
}

.ct-home-service-title {
    margin-bottom: 12px;
}

.ct-home-service-title p,
.ct-home-service-title h1,
.ct-home-service-title h2,
.ct-home-service-title h3,
.ct-home-service-title h4 {
    color: #000;
    font-family: "Familjen Grotesk", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    /* 26.4px */
    letter-spacing: -0.22px;
    margin-bottom: 5px;
}

.ct-home-service-text {
    flex-grow: 1;
    margin-bottom: 32px;
}

.ct-home-service-text p {
    color: rgba(0, 0, 0, 0.80);
    font-family: "Familjen Grotesk";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.16px;
}

.ct-home-service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 1px solid #111827;
    border-radius: 50px;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.ct-home-service-button:hover {
    background-color: #111827;
    color: #ffffff;
}

.ct-home-services-scrollbar {
    margin-top: 40px;
    position: relative;
    background: #E5E7EB !important;
    height: 3px !important;
    width: 100% !important;
    left: 0 !important;
    bottom: -55px !important;
}

.ct-home-services-scrollbar .swiper-scrollbar-drag {
    background: #111827;
    border-radius: 0;
    height: 100%;
    cursor: pointer;
}


.ct-support-card:hover .ct-support-card-hover {
    background-color: #FFFFD3 !important;
}