/* Testimonials section (home page) — managed from admin Testimonial Manager */
.tpl-testi { padding: 70px 0; background: #f7f5ef; }
.tpl-testi * { box-sizing: border-box; }

/* Heading row */
.tpl-testi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.tpl-testi-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #20a8ff; margin-bottom: 14px; }
.tpl-testi-title { font-size: 40px; line-height: 1.12; font-weight: 800; color: #14150f; margin: 0; letter-spacing: -0.5px; }

/* Rating badge (top-right) */
.tpl-testi-rating { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 16px 22px; box-shadow: 0 8px 24px rgba(16,24,40,0.06); }
.tpl-testi-rating-score { display: flex; align-items: center; gap: 6px; }
.tpl-testi-rating-score strong { font-size: 26px; font-weight: 800; color: #14150f; }
.tpl-testi-stars { color: #f5b301; font-size: 15px; letter-spacing: 1px; }
.tpl-testi-rating-sub { display: block; font-size: 12px; color: #7a7d72; }
.tpl-testi-rating-divider { width: 1px; height: 38px; background: #e7e7e2; }
.tpl-testi-rating-count strong { display: block; font-size: 22px; font-weight: 800; color: #20a8ff; line-height: 1.1; }

/* Featured (top) card — light brand theme (soft blue + gold accents) */
.tpl-testi-featured { display: grid; grid-template-columns: 1.55fr 1fr; gap: 0; background: linear-gradient(135deg, #f3f9ff 0%, #eaf2ff 100%); border: 1px solid #d8e6fb; border-radius: 22px; padding: 40px 44px; position: relative; overflow: hidden; box-shadow: 0 20px 48px rgba(32,168,255,0.12); }
.tpl-testi-featured::after { content: ""; position: absolute; top: -40%; right: -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(32,168,255,0.18) 0%, rgba(32,168,255,0) 70%); pointer-events: none; }
.tpl-testi-featured-main { position: relative; z-index: 2; padding-right: 24px; }
.tpl-testi-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,179,7,0.18); color: #c98700; border: 1px solid rgba(255,179,7,0.45); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; padding: 7px 14px; border-radius: 30px; }
.tpl-testi-quote-mark { display: block; font-family: Georgia, serif; font-size: 64px; line-height: 0.4; color: #20a8ff; margin: 26px 0 10px; height: 30px; }
.tpl-testi-featured-quote { font-size: 23px; line-height: 1.5; font-weight: 600; color: #1f2d3d; margin: 0 0 28px; }

.tpl-testi-person { display: flex; align-items: center; gap: 13px; }
.tpl-testi-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: #20a8ff; color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px; }
.tpl-testi-avatar-sm { width: 42px; height: 42px; font-size: 14px; }
.tpl-testi-person-meta { display: flex; flex-direction: column; }
.tpl-testi-person-name { font-size: 15px; font-weight: 700; color: #1f2d3d; }
.tpl-testi-person-sub { font-size: 12.5px; color: #5b6880; margin-top: 2px; }
.tpl-testi-verified { color: #20a8ff; font-size: 13px; margin-left: 3px; }

/* Featured side sub-card */
.tpl-testi-featured-side { position: relative; z-index: 2; background: #ffffff; border: 1px solid #dceafb; border-radius: 16px; padding: 28px 26px; align-self: center; box-shadow: 0 6px 18px rgba(7,30,87,0.06); }
.tpl-testi-trophy { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 13px; background: #ffb307; color: #071e57; font-size: 20px; margin-bottom: 22px; }
.tpl-testi-side-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #8696b3; margin-bottom: 6px; }
.tpl-testi-side-exam { font-size: 27px; font-weight: 800; color: #071e57; margin: 0 0 6px; letter-spacing: -0.3px; }
.tpl-testi-side-role { display: block; font-size: 14px; color: #1591ea; font-weight: 600; }
.tpl-testi-side-divider { display: block; height: 1px; background: #e9eef6; margin: 22px 0; }
.tpl-testi-side-prepared { display: block; font-size: 14px; color: #3c4852; font-weight: 500; }

/* Small cards grid */
.tpl-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.tpl-testi-card { position: relative; background: #fff; border: 1px solid #ececec; border-radius: 16px; padding: 26px 24px; box-shadow: 0 4px 14px rgba(16,24,40,0.04); transition: transform .25s ease, box-shadow .25s ease; }
.tpl-testi-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,24,40,0.10); }
.tpl-testi-card-quote-mark { position: absolute; top: 18px; right: 22px; font-family: Georgia, serif; font-size: 40px; color: #e6e3da; line-height: 1; }
.tpl-testi-card-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #b06a2c; background: #fbf2e7; padding: 6px 12px; border-radius: 30px; }
.tpl-testi-card-stars { display: block; color: #f5b301; font-size: 14px; letter-spacing: 2px; margin: 16px 0 12px; }
.tpl-testi-card-quote { font-size: 14.5px; line-height: 1.6; color: #353831; margin: 0 0 22px; }
.tpl-testi-card .tpl-testi-person { border-top: 1px solid #efeee8; padding-top: 18px; }
.tpl-testi-card .tpl-testi-avatar { background: #d9774226; color: #b06a2c; }
.tpl-testi-card .tpl-testi-person-name { color: #14150f; }
.tpl-testi-card .tpl-testi-person-sub { color: #8a8d82; }

/* Responsive */
@media (max-width: 991px) {
    .tpl-testi-title { font-size: 32px; }
    .tpl-testi-head { margin-bottom: 26px; }
    .tpl-testi-featured { grid-template-columns: 1fr; gap: 26px; padding: 32px 28px; }
    .tpl-testi-featured-main { padding-right: 0; }
    .tpl-testi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablets & large phones */
@media (max-width: 767px) {
    .tpl-testi { padding: 52px 0; }
    .tpl-testi-head { display: block; }
    .tpl-testi-title { font-size: 28px; }
    .tpl-testi-rating { width: 100%; justify-content: center; margin-top: 18px; }
    .tpl-testi-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* Phones */
@media (max-width: 600px) {
    .tpl-testi { padding: 44px 0; }
    .tpl-testi-title { font-size: 25px; line-height: 1.2; }
    .tpl-testi-featured { padding: 26px 20px; border-radius: 18px; gap: 22px; }
    .tpl-testi-featured-main { padding-right: 0; }
    .tpl-testi-quote-mark { font-size: 52px; margin: 20px 0 8px; }
    .tpl-testi-featured-quote { font-size: 18px; line-height: 1.55; margin-bottom: 22px; }
    .tpl-testi-featured-side { padding: 22px 20px; }
    .tpl-testi-trophy { width: 44px; height: 44px; font-size: 18px; margin-bottom: 18px; }
    .tpl-testi-side-exam { font-size: 23px; }
    .tpl-testi-card { padding: 22px 20px; }
    .tpl-testi-card-quote { font-size: 14px; }
    /* rating badge: let it wrap instead of overflowing */
    .tpl-testi-rating { flex-wrap: wrap; gap: 10px 16px; padding: 14px 16px; }
    .tpl-testi-rating-divider { display: none; }
}

/* Small phones */
@media (max-width: 380px) {
    .tpl-testi-title { font-size: 22px; }
    .tpl-testi-featured-quote { font-size: 16.5px; }
    .tpl-testi-avatar { width: 46px; height: 46px; font-size: 15px; }
    .tpl-testi-rating-score strong { font-size: 23px; }
    .tpl-testi-rating-count strong { font-size: 20px; }
}
