/* Base Container */
.ic-39a89ffb-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Default bg/padding handled by Elementor controls */
    font-family: sans-serif;
}

/* Title */
.ic-39a89ffb-title-wrap {
    text-align: right;
    padding-right: 5%;
    margin-bottom: 50px; /* Increased margin for larger cards */
}
@media(max-width: 767px) {
    .ic-39a89ffb-title-wrap {
        text-align: center;
        padding-right: 0;
    }
}

.ic-39a89ffb-title {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-weight: 400;
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0;
}

/* Carousel */
.ic-39a89ffb-carousel {
    padding: 60px 20px; /* Increased padding for larger rotation/scale area */
    overflow: visible; /* Let tilted cards overflow slightly */
    /* Edge fading mask */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* Cards */
.ic-39a89ffb-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px; /* Slightly more padding inside the slide */
}

.ic-39a89ffb-card-inner {
    position: relative;
    background-color: #ffffff;
    border: 1px solid #f4d4db;
    padding: 20px 20px 75px 20px; /* Increased bottom padding for caption proportional to larger card */
    box-shadow: 2px 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    width: 100%;
    max-width: 450px; /* INCREASED from 350px to 450px */
    margin: 0 auto;
}

.ic-39a89ffb-card-inner:hover {
    transform: scale(1.08) !important; /* Slightly larger hover scale for effect */
    box-shadow: 4px 15px 35px rgba(0,0,0,0.15);
    z-index: 2;
}

/* Fallback alternating rotation if no inline specific rotation */
.swiper-slide:nth-child(even) .ic-39a89ffb-card-inner:not([style*="rotate"]) {
    transform: rotate(2deg);
}
.swiper-slide:nth-child(odd) .ic-39a89ffb-card-inner:not([style*="rotate"]) {
    transform: rotate(-2deg);
}

/* Image inside card */
.ic-39a89ffb-card-image {
    width: 100%;
    /* Aspect ratio control from Elementor. Default is 1 (square) */
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f0f0f0;
}

/* Caption */
.ic-39a89ffb-caption {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    text-align: center;
    font-family: 'Caveat', 'Dancing Script', cursive, sans-serif;
    font-size: 1.8rem; /* Slightly larger text for bigger cards */
}

/* Pink Gingham Tape */
.ic-39a89ffb-tape {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 90px;
    height: 30px;
    background-color: rgba(255, 204, 220, 0.85); /* semi-transparent pink */
    /* Checkered pattern to simulate gingham */
    background-image: 
      linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.2) 75%, rgba(255,255,255,0.2)), 
      linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.2) 75%, rgba(255,255,255,0.2));
    background-size: 8px 8px;
    background-position: 0 0, 4px 4px;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Navigation */
.ic-39a89ffb-nav-prev,
.ic-39a89ffb-nav-next {
    color: #1A1A1A;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}
.ic-39a89ffb-nav-prev:hover,
.ic-39a89ffb-nav-next:hover {
    transform: scale(1.1);
    background: #ffffff;
}
.ic-39a89ffb-nav-prev:after,
.ic-39a89ffb-nav-next:after {
    font-size: 20px;
}
