/**
 * Frontend styles for Coach Carousel Elementor
 */

.cce-card-standalone {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.cce-card {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: transparent;
    padding: 20px;
    box-sizing: border-box;
}

.cce-image-wrap {
    width: min(320px, 70vw);
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    overflow: hidden;
    border: 10px solid #D5C9BA;
}

.cce-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cce-text {
    width: 100%;
    padding-top: 18px;
}

.cce-name {
    margin: 0;
    font-family: var(--cce-name-font, 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    font-size: var(--cce-name-size, 34px);
    color: var(--cce-name-color, #111111);
    line-height: 1.1;
    font-weight: 600;
    text-align: center;
}

.cce-title {
    margin-top: 10px;
    font-family: var(--cce-title-font, 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    font-size: var(--cce-title-size, 18px);
    color: var(--cce-title-color, #333333);
    line-height: 1.3;
    text-align: center;
}

.cce-short {
    margin-top: 14px;
    font-family: var(--cce-short-font, 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    font-size: var(--cce-short-size, 16px);
    color: var(--cce-short-color, #333333);
    line-height: 1.6;
    max-width: 46ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.cce-more {
    margin-top: 14px;
    border: 0 !important;
    background: transparent;
    padding: 0;
    cursor: pointer;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.cce-more * {
    border: none !important;
    box-shadow: none !important;
}

.cce-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--cce-plus-size, 34px);
    height: var(--cce-plus-size, 34px);
    margin: 0 auto;
}

.cce-icon-wrapper i,
.cce-icon-wrapper svg,
.cce-icon-wrapper .elementor-icon {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.cce-more svg,
.cce-icon-wrapper svg,
.cce-icon-wrapper .elementor-icon svg {
    width: var(--cce-plus-icon-size, 22px) !important;
    height: var(--cce-plus-icon-size, 22px) !important;
    display: block !important;
    margin: 0 auto !important;
}

.cce-more i,
.cce-icon-wrapper i,
.cce-icon-wrapper .elementor-icon i {
    font-size: var(--cce-plus-icon-size, 22px) !important;
    line-height: 1 !important;
    display: block !important;
    margin: 0 auto !important;
    width: auto !important;
    height: auto !important;
}

.cce-more svg path,
.cce-icon-wrapper svg path,
.cce-icon-wrapper .elementor-icon svg path {
    fill: currentColor !important;
}

.cce-icon-wrapper .elementor-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--cce-plus-size, 34px) !important;
    height: var(--cce-plus-size, 34px) !important;
}

.cce-more:hover {
    transform: scale(1.1);
}

.cce-more:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cce-more:active {
    border: none !important;
    outline: none;
}

.cce-plus {
    width: var(--cce-plus-size, 34px);
    height: var(--cce-plus-size, 34px);
    border-radius: 999px;
    border: none !important;
    background: var(--cce-plus-bg, #FFFFFF);
    color: var(--cce-plus-color, #111111);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    box-shadow: none !important;
}

.cce-plus svg {
    width: var(--cce-plus-icon-size, 22px);
    height: var(--cce-plus-icon-size, 22px);
    display: block;
}

.cce-full {
    margin-top: 14px;
    font-family: var(--cce-full-font, 'Heebo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    font-size: var(--cce-full-size, 16px);
    color: var(--cce-full-color, #333333);
    line-height: 1.7;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
}

.cce-full > * {
    overflow: hidden;
}

.cce-full:not([hidden]) {
    grid-template-rows: 1fr;
}

.cce-full[hidden] {
    display: none;
}

.cce-full p {
    margin: 0 0 12px;
}

.cce-full p:last-child {
    margin-bottom: 0;
}

/* Swiper carousel styles */
.cce-carousel {
    font-family: 'Heebo', sans-serif;
}

.cce-swiper {
    width: 100%;
    height: 100%;
}

.cce-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Navigation */
.cce-dots {
    position: relative;
    margin-top: 20px;
    text-align: center;
}

.swiper-pagination-bullet {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.cce-prev,
.cce-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #333;
    transition: opacity 0.3s ease;
}

.cce-prev {
    left: 10px;
}

.cce-next {
    right: 10px;
}

.cce-prev:hover,
.cce-next:hover {
    opacity: 0.7;
}

.cce-prev:focus,
.cce-next:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Arrow position inside */
.cce-carousel[data-arrow-position="inside"] .cce-prev {
    left: 0;
}

.cce-carousel[data-arrow-position="inside"] .cce-next {
    right: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .cce-image-wrap {
        width: min(280px, 78vw);
    }
}
