/**
 * IBCT Testimonials - Frontend Styles
 * Elegant, Modern, Material Design with Glassmorphism
 */

/* ==========================================================================
   CSS Variables - Brand Colors
   ========================================================================== */
:root {
    --ibct-navy: #1a237e;
    --ibct-navy-dark: #0d1259;
    --ibct-royal: #3949ab;
    --ibct-royal-light: #5c6bc0;
    --ibct-orange: #ff6d00;
    --ibct-amber: #ffab00;
    --ibct-amber-light: #ffd740;
    --ibct-bg-light: #f5f7fa;
    --ibct-white: #ffffff;
    --ibct-gray-100: #f8f9fa;
    --ibct-gray-200: #e9ecef;
    --ibct-gray-300: #dee2e6;
    --ibct-gray-500: #adb5bd;
    --ibct-gray-600: #6c757d;
    --ibct-gray-700: #495057;
    --ibct-gray-800: #343a40;
    --ibct-gray-900: #212529;
    --ibct-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --ibct-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    --ibct-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.2);
    --ibct-radius: 16px;
    --ibct-radius-lg: 24px;
    --ibct-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Testimonials Wrapper
   ========================================================================== */
.ibct-testimonials-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
}

.ibct-slider-wrapper {
    background: #ffffff;
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

/* Background pattern - subtle for white bg */
.ibct-slider-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(57, 73, 171, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(26, 35, 126, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* ==========================================================================
   Swiper Slider - 2 Cards View
   ========================================================================== */
.ibct-testimonials-slider {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 60px;
    overflow: visible;
}

/* Fullwidth modifier */
.ibct-slider-wrapper.ibct-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.ibct-fullwidth .ibct-testimonials-slider {
    max-width: 1600px;
}

.ibct-testimonials-slider .swiper-wrapper {
    align-items: stretch;
}

/* Swiper slide sizing for 2 cards */
.ibct-testimonials-slider .swiper-slide {
    width: calc(50% - 16px);
    height: auto;
}

/* ==========================================================================
   Testimonial Card - Preview Design Exact Match
   Override any other plugin styles with ultra-specific selectors
   ========================================================================== */
.ibct-testimonials-wrapper .ibct-testimonial-card,
.ibct-slider-wrapper .ibct-testimonial-card,
.swiper-slide .ibct-testimonial-card,
div.ibct-testimonial-card,
.ibct-testimonial-card.ibct-testimonial-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: var(--ibct-transition);
    box-shadow: 0 8px 32px rgba(26, 35, 126, 0.15) !important;
    height: 100%;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ibct-testimonials-wrapper .ibct-testimonial-card:hover,
.ibct-slider-wrapper .ibct-testimonial-card:hover,
.ibct-testimonial-card:hover {
    box-shadow: 0 16px 48px rgba(26, 35, 126, 0.25) !important;
    transform: translateY(-4px);
}

/* ==========================================================================
   Card Header - Blue Gradient with Client Info
   ========================================================================== */
.ibct-card-header {
    /* Premium Gradient */
    background: var(--ibct-header-bg, linear-gradient(135deg, var(--ibct-royal) 0%, var(--ibct-navy) 100%)) !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    position: relative !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Interactive Hover Effect */
.ibct-testimonials-wrapper .ibct-testimonial-card,
.ibct-slider-wrapper .ibct-testimonial-card,
.ibct-testimonial-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.ibct-testimonials-wrapper .ibct-testimonial-card:hover,
.ibct-slider-wrapper .ibct-testimonial-card:hover,
.ibct-testimonial-card:hover {
    box-shadow: 0 20px 48px rgba(26, 35, 126, 0.25) !important;
    transform: translateY(-5px) !important;
}

/* Program Badge - Upper Right */
.ibct-program-badge {
    position: absolute;
    top: 24px;
    right: 21px;
    color: #ffffff;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ibct-client-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ibct-client-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ibct-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ibct-avatar-placeholder svg {
    fill: rgba(255, 255, 255, 0.5);
}

.ibct-testimonial-card .ibct-client-info,
.ibct-card-header .ibct-client-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin-right: 170px !important;
}

.ibct-testimonial-card .ibct-client-name,
.ibct-card-header .ibct-client-name {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    /* Fix for slider gap */
    display: block !important;
    text-align: left !important;
    background: transparent !important;
}

.ibct-testimonial-card .ibct-client-title,
.ibct-card-header .ibct-client-title {
    margin: 2px 0 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    text-align: left !important;
}

/* Star Rating in Header */
.ibct-star-rating {
    display: flex;
    gap: 3px;
    margin: 0;
}

.ibct-star {
    display: inline-flex;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ibct-star svg {
    fill: rgba(255, 255, 255, 0.3);
    transition: var(--ibct-transition);
}

.ibct-star.filled svg {
    fill: var(--ibct-amber);
    filter: drop-shadow(0 0 4px rgba(255, 171, 0, 0.4));
}

/* Star Animation */
.ibct-star.animate {
    animation: ibct-star-pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Slowed from 0.4s */
}

/* Archive Hero Text */
.ibct-archive-hero h1 {
    color: #ffffff !important;
}

@keyframes ibct-star-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================================================
   Card Content - White Background with Testimonial Text
   ========================================================================== */
.ibct-card-content {
    padding: 20px 28px 24px;
    background: #ffffff;
    flex: 1;
    position: relative;
    /* Ensure content stays above quote icon if needed */
    z-index: 1;
}

/* Decorative Quote Icon */
.ibct-card-content::before {
    content: "❝";
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    line-height: 1;
    color: var(--ibct-navy);
    font-family: serif;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.ibct-testimonial-content {
    color: var(--ibct-gray-700);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
}

.ibct-testimonial-content p {
    margin: 0;
    color: var(--ibct-gray-700);
}

/* ==========================================================================
   Slider Navigation
   ========================================================================== */
.ibct-slider-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.ibct-slider-prev,
.ibct-slider-next {
    width: 48px;
    height: 48px;
    border: none !important;
    border-radius: 50%;
    background: var(--ibct-royal) !important;
    color: #ffffff !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--ibct-transition);
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.3) !important;
}

.ibct-slider-prev:hover,
.ibct-slider-next:hover {
    background: var(--ibct-navy) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(26, 35, 126, 0.4) !important;
}

.ibct-slider-prev svg,
.ibct-slider-next svg {
    fill: currentColor;
}

/* Swiper Pagination */
.ibct-testimonials-slider .swiper-pagination {
    position: relative;
    margin-top: 32px;
}

.ibct-testimonials-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: var(--ibct-transition);
}

.ibct-testimonials-slider .swiper-pagination-bullet-active {
    background: var(--ibct-orange);
    width: 32px;
    border-radius: 5px;
}

/* ==========================================================================
   Grid Layout
   ========================================================================== */
.ibct-grid-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.ibct-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(var(--ibct-columns, 3), 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .ibct-testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ibct-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* Grid Item Wrapper */
.ibct-grid-item {
    height: 100%;
    container-type: inline-size;
    container-name: ibct-card;
}

/* Ensure grid cards match slider cards exactly */
.ibct-grid-item .ibct-testimonial-card {
    height: 100%;
    /* Inherits all other styles from main .ibct-testimonial-card class */
}

/* Remove legacy grid overrides that caused the 'messy' look
.ibct-grid-item .ibct-testimonial-card { ... }
.ibct-grid-item .ibct-client-name { ... }
etc.
*/

/* ==========================================================================
   Masonry Layout
   ========================================================================== */
.ibct-masonry-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.ibct-testimonials-masonry {
    column-count: var(--ibct-columns, 3);
    column-gap: 32px;
}

@media (max-width: 1024px) {
    .ibct-testimonials-masonry {
        column-count: 2;
    }
}

@media (max-width: 640px) {
    .ibct-testimonials-masonry {
        column-count: 1;
    }
}

.ibct-testimonials-masonry .ibct-testimonial-card {
    break-inside: avoid;
    margin-bottom: 32px;
    background: var(--ibct-white);
    border: 1px solid var(--ibct-gray-200);
    box-shadow: var(--ibct-shadow-sm);
}

.ibct-testimonials-masonry .ibct-testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ibct-shadow-lg);
}

/* Masonry inherits base card styles, specific overrides below */

.ibct-testimonials-masonry .ibct-quote-icon svg {
    fill: var(--ibct-gray-200);
}

.ibct-testimonials-masonry .ibct-star svg {
    fill: var(--ibct-gray-300);
}

.ibct-testimonials-masonry .ibct-star.filled svg {
    fill: var(--ibct-amber);
}

.ibct-testimonials-masonry .ibct-testimonial-content {
    color: var(--ibct-gray-700);
}

.ibct-testimonials-masonry .ibct-client-section {
    border-top-color: var(--ibct-gray-200);
}

.ibct-testimonials-masonry .ibct-client-name {
    color: var(--ibct-gray-900);
}

.ibct-testimonials-masonry .ibct-client-title {
    color: var(--ibct-gray-600);
}

.ibct-testimonials-masonry .ibct-client-photo {
    border-color: var(--ibct-gray-200);
    background: var(--ibct-gray-100);
}

.ibct-testimonials-masonry .ibct-avatar-placeholder svg {
    fill: var(--ibct-gray-400);
}

.ibct-testimonials-masonry .ibct-company-logo img {
    filter: none;
    opacity: 0.8;
}

/* ==========================================================================
   Video Testimonials
   ========================================================================== */
.ibct-video-wrapper {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.ibct-video-grid {
    display: grid;
    grid-template-columns: repeat(var(--ibct-columns, 3), 1fr);
    gap: 32px;
}

@media (max-width: 1024px) {
    .ibct-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ibct-video-grid {
        grid-template-columns: 1fr;
    }
}

.ibct-video-card {
    background: var(--ibct-white);
    border-radius: var(--ibct-radius);
    overflow: hidden;
    box-shadow: var(--ibct-shadow-sm);
    cursor: pointer;
    transition: var(--ibct-transition);
}

.ibct-video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ibct-shadow-lg);
}

.ibct-video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--ibct-gray-200);
}

.ibct-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--ibct-transition);
}

.ibct-video-card:hover .ibct-video-thumbnail img {
    transform: scale(1.05);
}

.ibct-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.6) 0%, rgba(57, 73, 171, 0.4) 100%);
    opacity: 0;
    transition: var(--ibct-transition);
}

.ibct-video-card:hover .ibct-video-overlay {
    opacity: 1;
}

.ibct-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ibct-orange) 0%, var(--ibct-amber) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 109, 0, 0.4);
    transition: var(--ibct-transition);
    z-index: 2;
}

.ibct-play-button svg {
    fill: var(--ibct-white);
    margin-left: 4px;
}

.ibct-video-card:hover .ibct-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 109, 0, 0.5);
}

.ibct-video-info {
    padding: 20px;
}

.ibct-video-info .ibct-client-name {
    margin: 0 0 4px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ibct-gray-900) !important;
    white-space: normal !important;
    overflow: visible !important;
}

.ibct-video-info .ibct-client-title {
    margin: 0 !important;
    font-size: 14px !important;
    color: var(--ibct-gray-600) !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* Video Card Star Rating */
.ibct-video-info .ibct-star-rating {
    margin-top: 8px !important;
    justify-content: flex-start !important;
}

.ibct-video-info .ibct-star svg {
    fill: var(--ibct-gray-300) !important;
}

.ibct-video-info .ibct-star.filled svg {
    fill: var(--ibct-amber) !important;
}

/* ==========================================================================
   Video Modal
   ========================================================================== */
.ibct-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ibct-video-modal.active {
    display: flex;
}

.ibct-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: ibct-fade-in 0.4s ease;
}

@keyframes ibct-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ibct-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    animation: ibct-scale-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: visible !important;
}

@keyframes ibct-scale-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ibct-modal-close {
    position: absolute;
    top: -50px;
    right: -10px;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ibct-transition);
    opacity: 1;
    z-index: 9999999;
}

.ibct-modal-close:hover {
    transform: rotate(90deg);
}

.ibct-modal-close svg {
    fill: #ffffff !important;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.ibct-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ibct-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .ibct-modal-content {
        width: 100%;
    }

    .ibct-modal-close {
        top: -40px;
        right: 0;
    }
}

/* ==========================================================================
   No Testimonials Message
   ========================================================================== */
.ibct-no-testimonials {
    text-align: center;
    padding: 60px 20px;
    color: var(--ibct-gray-600);
    font-size: 16px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .ibct-slider-wrapper {
        padding: 60px 0;
    }

    .ibct-testimonials-slider {
        padding: 20px 20px;
    }

    .ibct-testimonial-card {
        padding: 32px 24px;
    }

    .ibct-testimonial-content {
        font-size: 16px;
    }

    .ibct-slider-navigation {
        display: none;
    }

    .ibct-client-section {
        flex-wrap: wrap;
    }

    .ibct-company-logo {
        width: 100%;
        justify-content: flex-start;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .ibct-grid-item .ibct-company-logo {
        border-top-color: var(--ibct-gray-200);
    }
}

/* ==========================================================================
   Archive Template Styles
   ========================================================================== */
/* Archive Styles */
.ibct-archive-wrapper {
    min-height: 100vh;
    background: var(--ibct-bg-light);
}

.ibct-archive-hero {
    background: linear-gradient(135deg, var(--ibct-navy) 0%, var(--ibct-royal) 100%);
    padding: 180px 20px 80px;
    /* Increased top padding to clear fixed header */
    text-align: center;
    color: var(--ibct-white);
    margin-bottom: 0;
}

.ibct-archive-hero h1 {
    margin: 0 0 16px;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff !important;
}

.ibct-archive-hero p {
    margin: 0;
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Container */
.ibct-filter-container {
    max-width: 1400px;
    margin: -40px auto 40px;
    /* Negative margin to pull up into hero slightly, or just regular margin */
    margin: 40px auto 40px;
    /* Let's just use regular spacing first to be safe */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 10;
}

/* Type Toggle */
.ibct-type-filter {
    display: inline-flex;
    background: #f1f3f5;
    padding: 4px;
    border-radius: 50px;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.ibct-type-btn {
    padding: 10px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ibct-gray-700);
    text-decoration: none;
    transition: all 0.3s ease;
}

.ibct-type-btn.active {
    background: #ffffff;
    color: var(--ibct-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ibct-type-btn:hover:not(.active) {
    color: var(--ibct-navy);
    background: rgba(255, 255, 255, 0.5);
}

/* Program Filters */
.ibct-archive-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 0;
    flex-wrap: wrap;
}

.ibct-filter-btn {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--ibct-gray-300);
    border-radius: 50px;
    background: var(--ibct-white);
    color: var(--ibct-gray-700);
    cursor: pointer;
    transition: var(--ibct-transition);
    text-decoration: none;
}

.ibct-filter-btn:hover,
.ibct-filter-btn.active {
    background: var(--ibct-navy);
    border-color: var(--ibct-navy);
    color: var(--ibct-white);
}

.ibct-archive-content {
    padding: 0 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Pagination */
.ibct-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    padding: 20px 0;
}

.ibct-pagination a,
.ibct-pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    height: 44px !important;
    padding: 0 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.ibct-pagination a,
.ibct-pagination a.page-numbers {
    background: #fff !important;
    color: var(--ibct-gray-700) !important;
    border: 1px solid var(--ibct-gray-300) !important;
}

.ibct-pagination a:hover,
.ibct-pagination a.page-numbers:hover {
    background: var(--ibct-navy) !important;
    color: #fff !important;
    border-color: var(--ibct-navy) !important;
}

.ibct-pagination .current,
.ibct-pagination span.page-numbers.current {
    background: var(--ibct-navy) !important;
    color: #fff !important;
    border: 1px solid var(--ibct-navy) !important;
}

.ibct-pagination .dots,
.ibct-pagination span.page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: var(--ibct-gray-600) !important;
}

/* ==========================================================================
   Mobile Responsive Styles
   ========================================================================== */
@media (max-width: 767px) {

    /* Card Header - Stack vertically on mobile */
    .ibct-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    /* Client Photo - Smaller on mobile */
    .ibct-client-photo {
        width: 50px !important;
        height: 50px !important;
    }

    /* Client Info - Full width on mobile */
    .ibct-client-info {
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Client Name - Adjust for mobile */
    .ibct-client-name {
        font-size: 16px !important;
        margin: 0 0 -10px !important;
        white-space: normal !important;
    }

    /* Client Title - Smaller on mobile */
    .ibct-client-title {
        font-size: 12px !important;
    }

    /* Program Badge - Repositioned on mobile */
    .ibct-program-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        align-self: flex-start !important;
        margin-bottom: 8px !important;
        order: -1 !important;
    }

    /* Star Rating */
    .ibct-star-rating {
        margin-top: 8px !important;
    }

    /* Card Content - Less padding on mobile */
    .ibct-card-content {
        padding: 16px !important;
    }

    /* Testimonial Content - Smaller text */
    .ibct-testimonial-content {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* Slider Navigation - Smaller buttons */
    .ibct-slider-prev,
    .ibct-slider-next {
        width: 36px !important;
        height: 36px !important;
    }

    .ibct-slider-prev svg,
    .ibct-slider-next svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* ==========================================================================
   Responsive Typography (Container Queries)
   Adjusts fonts based on card width (grid columns)
   ========================================================================== */

/* Compact Card (e.g. 4 columns or mobile) */
@container ibct-card (max-width: 380px) {
    .ibct-testimonial-card .ibct-client-name {
        font-size: 16px !important;
    }

    .ibct-testimonial-card .ibct-client-title {
        font-size: 12px !important;
    }

    .ibct-testimonial-card .ibct-testimonial-content {
        font-size: 13px;
        line-height: 1.5;
    }

    .ibct-card-header {
        padding: 16px !important;
    }

    .ibct-card-content {
        padding: 16px 20px 20px;
    }
}

/* Wide Card (e.g. 2 columns) */
@container ibct-card (min-width: 500px) {
    .ibct-testimonial-card .ibct-client-name {
        font-size: 20px !important;
    }

    .ibct-testimonial-card .ibct-client-title {
        font-size: 14px !important;
    }

    .ibct-testimonial-card .ibct-testimonial-content {
        font-size: 15px;
        line-height: 1.7;
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.ibct-scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.ibct-scroll-animate.ibct-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Big Slider — ibct_big_slider shortcode
   Fully isolated namespace: .ibct-big-slider-*
   DO NOT modify these styles — they are separate from the card slider above.
   ========================================================================== */

/* Outer wrapper — section background is driven by inline style */
.ibct-big-slider-wrapper {
    padding: 48px 24px 32px;
    box-sizing: border-box;
}

/* Swiper container */
.ibct-big-slider {
    max-width: 1140px;
    margin: 0 auto;
    border: 1px solid #e4e8f0;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 6px 32px rgba(26, 35, 126, 0.08);
    overflow: hidden;
}

/* Each slide: two-column flex row */
.ibct-big-slide {
    display: flex !important;
    align-items: stretch;
    min-height: 380px;
}

/* ---- Left column: photo + blob ---- */
.ibct-big-slide-photo {
    position: relative;
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    min-height: 400px;
    padding: 0;                /* blob fills full height edge-to-edge */
    box-sizing: border-box;
}

/* D-shape blob — flat left edge, curved right edge — color driven by inline style */
.ibct-big-slide-blob {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 84%;                          /* leaves ~16% gap on right so curve is visible */
    border-radius: 0 999px 999px 0;      /* flat left, rounded right = D-shape */
    background: #dce8f5;                 /* default; overridden inline */
    z-index: 0;
}

/* Portrait photo — fills the entire left column area */
.ibct-big-slide-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Fallback avatar placeholder */
.ibct-big-slide-no-img {
    position: relative;
    z-index: 1;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.ibct-big-slide-no-img svg {
    fill: #90a4ae;
}

/* ---- Right column: testimonial text ---- */
.ibct-big-slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    padding: 40px 44px 40px 32px;
    box-sizing: border-box;
    position: relative; /* needed for the decorative quote mark */
}

/* Decorative opening quote mark — large, elegant, behind the text */
.ibct-big-slide-content::before {
    content: '\201C'; /* Unicode left double quotation mark */
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 180px;
    line-height: 1;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a237e;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
    user-select: none;
}

/* The quote text — sits above the decorative quote mark */
.ibct-big-slide-text {
    color: #3d4560;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.ibct-big-slide-text p {
    margin: 0;
    color: #3d4560;
}

/* Author block */
.ibct-big-slide-author {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ibct-big-slide-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a237e;
    display: block;
    margin: 0;
    padding: 0;
}

.ibct-big-slide-role {
    font-size: 14px;
    color: #5c9bd4;
    display: block;
}

/* ---- Pagination dots ---- */
.ibct-big-slider-pagination {
    position: relative !important;
    bottom: auto !important;
    padding: 0 0 20px;
    margin-top: 0;
    text-align: center;
}

.ibct-big-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #c8cdd8;
    opacity: 1;
    border-radius: 50%;
    transition: background 0.25s ease;
}

.ibct-big-slider .swiper-pagination-bullet-active {
    background: #6b7280;
    width: 10px; /* keep round, no elongation */
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .ibct-big-slider-wrapper {
        padding: 32px 12px 24px;
    }

    .ibct-big-slider {
        border-radius: 16px;
    }

    .ibct-big-slide {
        flex-direction: column;
        min-height: auto;
    }

    .ibct-big-slide-photo {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        min-height: 260px;
        padding: 0;
    }

    .ibct-big-slide-blob {
        /* On mobile: wide D-shape across the full-width column */
        top: 0;
        left: 0;
        bottom: 0;
        width: 92%;
        border-radius: 0 999px 999px 0;
    }

    .ibct-big-slide-img {
        max-height: 220px;
    }

    .ibct-big-slide-content {
        padding: 28px 24px 28px;
        gap: 16px;
    }

    .ibct-big-slide-text {
        font-size: 14px;
    }
}