/* Unified Testimonial Section & Modal (All Themes) */
.lp-testi-sec { padding: 72px 16px; background: #f8fafc; border-top: 1px solid #e2e8f0; }
.lp-testi-wrap { max-width: 1200px; margin-inline: auto; }
.lp-testi-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.lp-testi-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b45309; margin-bottom: 6px; }
.lp-testi-top h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 800; color: #0f172a; line-height: 1.2; margin: 0; }
.lp-testi-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lp-testi-score { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid #e2e8f0; padding: 9px 14px; border-radius: 9999px; font-size: .84rem; font-weight: 700; color: #0f172a; }
.lp-testi-score i { color: #f59e0b; }
.lp-testi-btn-add { display: inline-flex; align-items: center; gap: 8px; background: #0a1628; color: #ffffff; border: 0; padding: 11px 20px; border-radius: 9999px; font-size: .86rem; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(10,22,40,.16); transition: transform .2s, opacity .2s; }
.lp-testi-btn-add:hover { transform: translateY(-2px); opacity: .95; }

.lp-testi-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.lp-testi-filter { border: 1px solid #cbd5e1; background: #ffffff; color: #475569; padding: 7px 15px; border-radius: 9999px; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s; }
.lp-testi-filter.is-active { background: #0a1628; color: #ffffff; border-color: #0a1628; }

.lp-testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-testi-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 4px 16px rgba(15,23,42,.04); transition: transform .2s, box-shadow .2s; }
.lp-testi-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(15,23,42,.08); }
.lp-testi-card-head { display: flex; align-items: center; gap: 12px; }
.lp-testi-avatar { width: 42px; height: 42px; border-radius: 12px; background: #0a1628; color: #fcd34d; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex-shrink: 0; }
.lp-testi-author { min-width: 0; flex: 1; }
.lp-testi-author strong { display: block; font-size: .92rem; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-testi-author small { display: block; font-size: .74rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-testi-role { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 9999px; background: #eff6ff; color: #1d4ed8; white-space: nowrap; }
.lp-testi-stars { color: #f59e0b; font-size: .82rem; display: flex; gap: 3px; }
.lp-testi-quote { font-size: .88rem; color: #334155; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lp-testi-date { font-size: .72rem; color: #94a3b8; margin-top: auto; }
.lp-testi-empty { grid-column: 1 / -1; text-align: center; padding: 36px 20px; background: #ffffff; border: 1px dashed #cbd5e1; border-radius: 18px; color: #64748b; font-size: .9rem; }

/* Theme Accents */
.lp-madrasah .lp-testi-sec { background: #f5f2e8; }
.lp-madrasah .lp-testi-top h2 { font-family: 'Playfair Display', serif; color: #064e3b; }
.lp-madrasah .lp-testi-btn-add, .lp-madrasah .lp-testi-filter.is-active, .lp-madrasah .lp-testi-avatar { background: #064e3b; border-color: #064e3b; }
.lp-modern .lp-testi-btn-add, .lp-modern .lp-testi-filter.is-active, .lp-modern .lp-testi-avatar { background: #0284c7; border-color: #0284c7; color: #ffffff; }
.lp-ceria .lp-testi-sec { background: #f0fdfa; }
.lp-ceria .lp-testi-btn-add, .lp-ceria .lp-testi-filter.is-active, .lp-ceria .lp-testi-avatar { background: #00848c; border-color: #00848c; color: #ffffff; }

/* Modal */
.lp-testi-modal { position: fixed; inset: 0; z-index: 105; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lp-testi-modal.hidden { display: none !important; }
.lp-testi-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(6px); }
.lp-testi-dialog { position: relative; z-index: 1; width: 100%; max-width: 480px; background: #ffffff; border-radius: 24px; padding: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.25); max-height: 92vh; overflow-y: auto; }
.lp-testi-field { margin-bottom: 14px; }
.lp-testi-field label { display: block; font-size: .78rem; font-weight: 700; color: #334155; margin-bottom: 5px; }
.lp-testi-field input, .lp-testi-field select, .lp-testi-field textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 12px; padding: 10px 12px; font-size: .88rem; color: #0f172a; background: #ffffff; outline: none; }
.lp-testi-field input:focus, .lp-testi-field select:focus, .lp-testi-field textarea:focus { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,.12); }
.lp-star-picker { display: flex; gap: 6px; }
.lp-star-btn { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; width: 38px; height: 38px; color: #cbd5e1; cursor: pointer; font-size: 1rem; transition: all .15s; }
.lp-star-btn.is-on { color: #f59e0b; background: #fffbeb; border-color: #fde68a; }

@media (max-width: 960px) { .lp-testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lp-testi-grid { grid-template-columns: 1fr; } }

