/* --- Container Settings --- */
.ctr-carousel-container {
    position: relative;
    box-sizing: border-box;
    font-family: inherit;
    padding: 0 50px; /* Room for arrows */
    margin: 0 auto;
}

/* Base Wrapper */
.ctr-wrapper {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    box-sizing: border-box;
}

.ctr-wrapper * {
    box-sizing: border-box;
}

/* Base Card Styling */
.ctr-review-card {
    background-color: var(--ctr-bg);
    border: 1px solid var(--ctr-border);
    border-radius: var(--ctr-radius);
    padding: var(--ctr-padding);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column; 
}

.ctr-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Stars */
.ctr-stars {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.ctr-star.filled { color: var(--ctr-star); }
.ctr-star:not(.filled) { color: #d1d5db; }

/* Typography */
.ctr-review-title {
    margin: 0 0 10px 0;
    font-size: var(--ctr-title-size);
    font-weight: 600;
    color: var(--ctr-text);
    line-height: 1.3;
}
.ctr-review-content {
    font-size: var(--ctr-text-size);
    color: var(--ctr-text);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
}
.ctr-review-meta {
    margin-top: auto; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ctr-text);
    opacity: 0.7;
    border-top: 1px solid var(--ctr-border);
    padding-top: 12px;
}

/* ----------------------------------
   MODERN CAROUSEL UI (ARROWS & DOTS)
----------------------------------- */
.ctr-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    color: #374151;
    font-size: 16px;
    transition: all 0.2s ease-in-out;
    outline: none;
    padding: 0;
}

.ctr-arrow:hover {
    background: #f9fafb;
    color: var(--ctr-star);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transform: translateY(-50%) scale(1.05);
}

.ctr-arrow-prev { left: 0; }
.ctr-arrow-next { right: 0; }

/* Modern Dots */
.ctr-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    padding-bottom: 15px;
}

.ctr-dot {
    width: 8px;
    height: 8px;
    background: #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
}

/* Modern Pill shape for active dot */
.ctr-dot.active {
    background: var(--ctr-star);
    width: 24px;
    border-radius: 4px;
}

.ctr-dot:hover:not(.active) {
    background: #9ca3af;
    transform: scale(1.2);
}

/* ----------------------------------
   LAYOUTS & SCROLLBAR FIX
----------------------------------- */
.ctr-layout-carousel {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    -webkit-overflow-scrolling: touch;
    align-items: stretch; 
    
    /* Completely hide the default scrollbar line */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.ctr-layout-carousel::-webkit-scrollbar { 
    display: none; /* Chrome, Safari and Opera */
}

.ctr-layout-carousel .ctr-review-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    height: auto; 
}

/* GRID */
.ctr-layout-grid { flex-wrap: wrap; align-items: stretch; }
.ctr-layout-grid .ctr-review-card {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
}
@media (max-width: 768px) {
    .ctr-layout-grid .ctr-review-card { flex: 1 1 100%; }
}

/* MASONRY */
.ctr-layout-masonry {
    display: block;
    column-count: 3;
    column-gap: 20px;
}
.ctr-layout-masonry .ctr-review-card {
    break-inside: avoid;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .ctr-layout-masonry { column-count: 2; }
}
@media (max-width: 600px) {
    .ctr-layout-masonry { column-count: 1; }
}