/* ═══════════════════════════════════════════════════════════
   CodeTodo Testimonials Grid — Frontend CSS
   Prefix: ctts-
   ═══════════════════════════════════════════════════════════ */

/* ── Outer wrap ── */
.ctts-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Inner container (max-width + horizontal padding) ── */
.ctts-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

/* ════════════════════════════════════════
   SECTION HEADING
════════════════════════════════════════ */
.ctts-heading {
    text-align: center;
}

/* Badge pill */
.ctts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 9999px;
    border: 1px solid;
    margin-bottom: 16px;
}

.ctts-badge span:last-child {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ctts-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

/* Main heading */
.ctts-h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    line-height: 1.2;
}

/* ════════════════════════════════════════
   MASONRY GRID
════════════════════════════════════════ */

/* Outer masonry wrapper — columns set inline via PHP */
.ctts-masonry {
    display: grid;
    align-items: start;      /* critical: columns don't stretch to equal height */
}

/* Each column — flexbox column so cards stack with gap */
.ctts-col {
    display: flex;
    flex-direction: column;
}

/* ════════════════════════════════════════
   TESTIMONIAL CARD
════════════════════════════════════════ */
.ctts-card {
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    position: relative;
    overflow: hidden;
    will-change: transform;
    cursor: default;
    /* border / box-shadow / transform all transition together */
    transition: border 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.28s ease;
}

/* Hover lift */
.ctts-card:hover {
    transform: translateY(-4px);
}

/* ── Stars ── */
.ctts-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.ctts-stars svg {
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ctts-card:hover .ctts-stars svg {
    transform: scale(1.1);
}

/* ── Quote ── */
.ctts-quote {
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    /* font-size and color set inline */
}

/* Opening/closing curly quotes are inserted in PHP via &#8220; / &#8221; */

/* ── Author row ── */
.ctts-author {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid;        /* color set inline */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar circle */
.ctts-avatar {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* width / height / min-width set inline */
}

/* Name */
.ctts-name {
    font-weight: 600;
    line-height: 1.3;
    /* font-size / color set inline */
}

/* Role + company */
.ctts-role {
    font-weight: 400;
    line-height: 1.4;
    margin-top: 2px;
    /* font-size / color set inline */
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

/* Tablet: max 2 columns, tighter inner padding */
@media (max-width: 1024px) {
    .ctts-inner   { padding: 0 40px; }
    .ctts-masonry { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Mobile: single column, minimal padding */
@media (max-width: 640px) {
    .ctts-inner   { padding: 0 20px; }
    .ctts-masonry { grid-template-columns: 1fr !important; }
    .ctts-h2      { font-size: 28px !important; }
    .ctts-card    { transform: none !important; } /* disable lift on touch */
}
