/* =====================================================
   SINGLE TEMPLATE STYLES
   ===================================================== */
.single-cpt-container img { 
    max-width:200px; 
    border-radius:50%; 
    margin-bottom:20px; 
}
.cpt-single-acf p { margin:5px 0; }


/* =====================================================
   GRID SYSTEM – COLUMN WIDTHS + RESPONSIVE
   ===================================================== */
.cpt-team-holder {
    display: flex;
    flex-wrap: wrap;
    gap: 32px; /* spacing between cards */
}

.cpt-grid-column {
    box-sizing: border-box;
}

/* Match the screenshot layout */
.cpt-columns-3 .cpt-grid-column { width: calc((100% - (3 * 32px)) / 3); }
.cpt-columns-4 .cpt-grid-column { width: calc((100% - (4 * 32px)) / 4); }
.cpt-columns-2 .cpt-grid-column { width: calc((100% - (2 * 32px)) / 2); }
.cpt-columns-5 .cpt-grid-column { width: calc((100% - (1 * 32px)) / 1); }

@media (max-width: 992px) {
    .cpt-columns-3 .cpt-grid-column,
    .cpt-columns-4 .cpt-grid-column {
        width: 48%;
    }
}

@media (max-width: 600px) {
    .cpt-grid-column { width: 100% !important; }
}


/* =====================================================
   TEAM CARD STYLE – EXACT MATCH TO KALGISOFT UI
   ===================================================== */

/* Card Wrapper */
.team-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all .35s ease;
    text-align: left;
    padding-bottom: 18px;
}

/* Hover Lift */
.team-card:hover {
	background: transparent;
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Image Container */
.team-img-wrap {
    position: relative;
    height: 340px;
    overflow: hidden;
    border-radius: 18px;
}

.team-img-wrap img {
    width: 100%;
    height: 100%!important;
    object-fit: cover;
    transition: transform .45s ease;
}

/* Image zoom on hover */
.team-card:hover .team-img-wrap img {
    transform: scale(1.06);
}

/* LinkedIn Button */
.team-linkedin {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    background: #0A66C2;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.35s ease;
    z-index: 3; /* above overlay */
}

/* Show icon on hover */
.team-card:hover .team-linkedin {
    opacity: 1;
    transform: translateY(0);
}

/* White overlay using pseudo-element */
.team-img-wrap::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(255,255,255,0); /* initially transparent */ 
    transition: background 0.35s ease; 
    border-radius: 18px; 
    pointer-events: none; 
    z-index: 2; /* above image */ 
} 

.team-card:hover .team-img-wrap::after { 
    background: rgba(255,255,255,0.4); /* white overlay on hover */ 
}

/* Content Area */
.team-content {
    padding: 14px 8px 0 22px;
}

/* Name */
.team-name {
    margin: 18px 0 4px;
    font-size: 25px;
    font-weight: 700;
    color: #2B2B7A;
}

.team-name a {
    text-decoration: none;
    color: inherit;
}

/* Role */
.team-role {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

img.round-image.wp-post-image {
    border-radius: 50%;
}

span.member-role-class {
    font-size: 20px;
    font-weight: 500;
    color: #312d89;
    text-align: center;
    display: block;
}

.single-team-member .main-title-section h1 {
    color: #312d89;
}

.single-team-member .main-title-section-wrapper {
    height: 240px !important;
    padding-top: 26px !important;
}


/* ================== Testimonial Carousel ================== */
/* Main container with padding */
.cpt-testimonial-holder {
    position: relative;	
    padding: 40px 0;
}

/* Wrapping container for testimonial items */
.cpt-testimonial-wrapper {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;  /* Prevent wrapping of slides */
}

/* Individual testimonial item styling */
.cpt-testimonial-item {
    background: #fff;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 380px!important;  /* Ensure fixed height for consistency */
}

/* Hover effect for testimonial items */
.cpt-testimonial-item:hover {
    transform: translateY(-5px);
}

/* Image styling */
.cpt-testimonial-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* Testimonial title styling */
.cpt-testimonial-title h5 {
    font-size: 22px;
    color: #2B2B7A;
    margin-bottom: 5px;
}

/* Testimonial role styling */
.cpt-testimonial-role span {
    display: block;
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* Testimonial content */
.cpt-testimonial-content {
    font-size: 16px;
    color: #333;
    flex-grow: 1;
    margin-bottom: 15px;
}

/* Arrows container styling */
.cpt-testimonial-arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
    transform: translateY(-50%);
    padding: 0 15px;
    z-index: 10;
}

/* Styling for arrows */
.cpt-testimonial-prev,
.cpt-testimonial-next {
    padding: 8px 10px!important;
    background: linear-gradient(
        252deg, 
        rgba(255, 241, 255, 1) 20.03%,
        rgba(255, 250, 233, 1) 58.07%, 
        rgba(255, 250, 233, 1) 58.08%, 
        rgba(234, 255, 243, 1) 95.81%
    );
    border: solid 1px #cccccc!important;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Hover effect for arrows */
.cpt-testimonial-prev:hover,
.cpt-testimonial-next:hover {
    background: #1f1f66;
}

.cpt-testimonial-prev i,
.cpt-testimonial-next i {
    font-size: 22px;
}

/* Pagination */
.cpt-testimonial-pagination {
    display: none;  /* You can enable this if needed */
    text-align: center;
    margin-top: 20px;
}

/* ================== Responsive Adjustments ================== */
@media (max-width: 1024px) {
    /* 3 items per view on large tablet/desktop */
    .cpt-testimonial-item.swiper-slide {
        width: 100% !important;  /* 100% width for mobile/tablet */
        margin-right: 15px !important;
    }
}

@media (max-width: 768px) {
    /* 1 item per view on smaller screens */
    .cpt-testimonial-item.swiper-slide {
        width: 100% !important;  /* 100% width for mobile */
        margin-right: 10px !important;  /* Adjust margin for mobile */
    }

    .cpt-testimonial-item {
        flex-direction: column;
        padding: 15px;
    }

    .cpt-testimonial-title h5 {
        font-size: 18px;
    }

    .cpt-testimonial-role {
        font-size: 14px;
    }
}

@media (max-width: 479px) {
    .cpt-testimonial-item {
        padding: 10px;
    }
    .cpt-testimonial-title h5 {
        font-size: 16px;
    }
    .cpt-testimonial-role {
        font-size: 12px;
    }
}

/* Override Swiper's dynamic width for desktop */
.cpt-testimonial-item.swiper-slide {
    width: 812.5px !important;
    margin-right: 40px !important;
}

/* ================== Testimonial Grid ================== */
.cpt-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
    color: #333;
    width: 100%;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

.cpt-testimonial-grid-item {
    background: #ffffff;
    border-radius: 22px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #333;
}

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

.cpt-testimonial-grid-item .cpt-testimonial-role,
.cpt-testimonial-grid-item .cpt-testimonial-content {
    color: #555;
}

/* Responsive: Reduce columns automatically */
@media (max-width: 1024px) {
    .cpt-testimonial-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .cpt-testimonial-grid {
        grid-template-columns: 1fr !important;
    }
}

.main-title-section-wrapper .member-role {
	width: calc(100% - 20px);
    font-size: 20px;      /* same style as subtitle */
    font-weight: 500;
    margin-top: 8px;
    color: #777;
}