/* ============================================
   testimonials.css
   ============================================ */

/* Banner */
.banner {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), color-mix(in srgb, var(--primary-color) 82%, transparent));
}
.banner_heading {
    font-family: 'Kanit', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}
.banner_para {
    color: rgba(255,255,255,0.88);
    font-size: 16px;
    font-family: 'Gabarito', sans-serif;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .banner { height: auto; padding: 60px 0 20px; }
    .banner_heading { font-size: 32px; letter-spacing: 2px; }
}

/* ============================================
   Rating Strip
   ============================================ */
.test-rating-strip {
    background: #fdf6f7;
    border-bottom: 1px solid rgba(170,35,64,0.1);
    padding: 20px 0;
}
.test-rating-strip__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.test-rating-strip__score {
    display: flex;
    align-items: center;
    gap: 10px;
}
.test-rating-strip__num {
    font-family: 'Kanit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}
.test-rating-strip__stars {
    display: flex;
    gap: 2px;
    color: #f4b400;
    font-size: 18px;
}
.test-rating-strip__label {
    font-family: 'Gabarito', sans-serif;
    font-size: 12px;
    color: #666;
}
.test-rating-strip__divider {
    width: 1px;
    height: 40px;
    background: rgba(170,35,64,0.15);
    flex-shrink: 0;
}
.test-rating-strip__stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.test-rating-strip__stats span {
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.test-rating-strip__stats span i {
    color: var(--primary-color);
    font-size: 15px;
}
.test-rating-strip__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--primary-color);
    color: #fff !important;
    font-family: 'Kanit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.test-rating-strip__link:hover { opacity: 0.88; }
@media (max-width: 767px) {
    .test-rating-strip__divider { display: none; }
    .test-rating-strip__stats { justify-content: center; }
}

/* ============================================
   Review Cards
   ============================================ */
.student_review {
    padding: 72px 0 80px;
    background: #fff;
}

.review_box {
    position: relative;
    background: var(--primary-color);
    border-radius: 16px;
    padding: 52px 26px 52px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(170,35,64,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.review_box:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(170,35,64,0.2);
}

/* Google badge top-left */
.gstar {
    position: absolute;
    top: -14px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border-radius: 50px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.gstar__g {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gstar__stars {
    display: flex;
    gap: 2px;
    color: #f4b400;
    font-size: 13px;
}

/* Review text */
.review_content {
    flex: 1;
}
.review_content p {
    font-family: 'Gabriela', serif;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.75;
    margin: 0;
}

/* Reviewer name bottom */
.reviewer_name {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 50px;
    padding: 8px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    align-self: flex-start;
    margin-top: auto;
}
.reviewer_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(170,35,64,0.15);
}
.reviewer_avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
.reviewer_info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.reviewer_info__name {
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}
.reviewer_info__loc {
    font-family: 'Gabarito', sans-serif;
    font-size: 11px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.reviewer_info__loc i {
    font-size: 10px;
    color: var(--primary-color);
}

/* CTA card */
.review_box--cta {
    background: #4285F4;
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 40px 26px;
}
.review_box__cta-g {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #4285F4;
    font-family: 'Kanit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.review_box__cta-title {
    font-family: 'Kanit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}
.review_box__cta-text {
    font-family: 'Gabriela', serif;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0 0 20px;
}
.review_box__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #4285F4 !important;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.review_box__cta-btn:hover { opacity: 0.88; }

@media (max-width: 991px) {
    .student_review { padding: 56px 0 64px; }
}
@media (max-width: 767px) {
    .review_box { padding: 52px 20px 42px; }
}

/* ============================================
   Video Testimonials
   ============================================ */
.test-videos {
    padding: 64px 0;
    background: #f9f5f2;
}
.test-videos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* pys-video-card styles (from common.css pattern) */
.pys-video-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    border: 1px solid rgba(170,35,64,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pys-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}
.pys-video-card:hover img { opacity: 0.85; }
.pys-video-card iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
.pys-video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(170,35,64,0.9);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: transform 0.2s ease, background 0.2s;
    pointer-events: none;
}
.pys-video-card:hover .pys-video-card__play {
    background: var(--primary-color);
    transform: translate(-50%,-50%) scale(1.1);
}
@media (max-width: 768px) {
    .test-videos__grid { grid-template-columns: 1fr; gap: 14px; }
    .pys-video-card__play { width: 48px; height: 48px; font-size: 17px; }
}

/* ============================================
   pys-join (ported from home.css / teacher.css)
   ============================================ */
.pys-join {
    padding: 48px 0;
    position: relative;
    overflow: hidden;
    background: url('assets/img/home/2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}
.pys-join::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 75%, transparent) 100%);
    z-index: 0;
}
.pys-join__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 260px 1fr;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    align-items: center;
    gap: 40px;
}
.pys-join__img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.2);
}
.pys-join__img-wrap img { width:100%; height:auto; display:block; object-fit:cover; }
.pys-join__content { display:flex; flex-direction:column; gap:14px; }
.pys-join__tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    font-family: 'Kanit', sans-serif;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 4px 14px; border-radius: 20px; align-self: flex-start;
}
.pys-join__heading {
    font-family: 'Kanit', sans-serif;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700; color: #fff; line-height: 1.25; margin: 0;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.3);
}
.pys-join__heading span { color: var(--secondary-color); }
.pys-join__text {
    font-family: 'Gabriela', serif;
    font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.7; margin: 0;
}
.pys-join__date {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Kanit', sans-serif; font-size: 13px;
    color: var(--secondary-color); font-weight: 600;
}
.pys-join__btns { display:flex; gap:12px; flex-wrap:wrap; margin-top:4px; }
.pys-join__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 6px;
    font-family: 'Kanit', sans-serif; font-size: 14px; font-weight: 600;
    text-decoration: none !important; transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap; cursor: pointer; border: none; line-height: 1;
}
.pys-join__btn:hover { opacity: 0.88; transform: translateY(-2px); }
.pys-join__btn--primary { background: #fff; color: var(--primary-color) !important; }
.pys-join__btn--outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.6); }
.pys-join__btn--outline:hover { background: rgba(255,255,255,0.12); }
@media (max-width: 768px) {
    .pys-join { padding: 36px 0; background-attachment: scroll; }
    .pys-join__inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .pys-join__img-wrap { max-width: 240px; margin: 0 auto; }
    .pys-join__tag { align-self: center; }
    .pys-join__date { justify-content: center; }
    .pys-join__btns { justify-content: center; flex-direction: column; align-items: stretch; }
    .pys-join__btn { justify-content: center; }
}
