/* ============================================
   TESTIMONIALS PAGE — testimonials.css
============================================= */

/* HERO */
.testi-hero {
    position: relative;
    height: 45vh;
    min-height: 320px;
    max-height: 480px;
    overflow: hidden;
}
.testi-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.testi-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
}
.testi-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 50px 0 44px;
}
.testi-hero-content .container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.testi-hero-tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--color-primary);
    color: var(--color-dark);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 12px;
    animation: testiFadeUp 0.6s ease both;
}
.testi-hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 300;
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 10px;
    animation: testiFadeUp 0.6s ease 0.1s both;
}
.testi-hero-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    line-height: 1.6;
    animation: testiFadeUp 0.6s ease 0.2s both;
}

/* STATS BAR */
.testi-stats {
    background: var(--color-dark);
    padding: 0;
}
.testi-stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.testi-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    border-right: 1px solid rgba(255,255,255,0.08);
    color: var(--color-white);
    text-align: center;
}
.testi-stat:last-child {
    border-right: none;
}
.testi-stat-number {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 6px;
}
.testi-stat-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

/* FEATURED TESTIMONIAL */
.testi-featured {
    background: var(--color-bg-warm);
    padding: 64px 0 48px;
}
.testi-featured-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 48px 52px;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 48px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.testi-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
}
.testi-quote-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
}
.testi-featured-stars {
    margin-bottom: 16px;
}
.testi-featured-stars .star-filled {
    color: var(--color-primary);
}
.testi-featured-stars .star-empty {
    color: var(--color-border);
}
.testi-featured-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 12px;
}
.testi-featured-text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-text-light);
    font-style: italic;
    margin: 0;
}
.testi-featured-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}
.testi-featured-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-warm);
}
.testi-featured-photo .testi-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testi-featured-photo .testi-photo-initials {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
}
.testi-featured-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.testi-featured-info strong {
    font-size: 16px;
    color: var(--color-dark);
}
.testi-featured-info span {
    font-size: 13px;
    color: var(--color-text-muted);
}
.testi-tour-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 12px;
    background: rgba(212,168,83,0.1);
    border: 1px solid rgba(212,168,83,0.25);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.03em;
}

/* FILTER BAR */
.testi-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    justify-content: center;
}
.testi-filter-btn {
    padding: 8px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.02em;
}
.testi-filter-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}
.testi-filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-dark);
}

/* TESTIMONIALS GRID */
.testi-grid-section {
    background: var(--color-bg-warm);
    padding: 48px 0 100px;
}
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* TESTIMONIAL CARD */
.testi-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}
.testi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.testi-card.is-hidden {
    display: none;
}
.testi-card-stars {
    margin-bottom: 14px;
}
.testi-card-stars .star-filled {
    color: var(--color-primary);
}
.testi-card-stars .star-empty {
    color: var(--color-border);
}
.testi-card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}
.testi-card-text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-light);
    flex: 1;
    margin-bottom: 20px;
}
.testi-card-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-light);
    flex-wrap: wrap;
}
.testi-card-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-warm);
    border: 2px solid var(--color-border-light);
    flex-shrink: 0;
}
.testi-card-photo .testi-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testi-card-photo .testi-photo-initials {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-primary);
}
.testi-card-author {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.testi-card-author strong {
    font-size: 14px;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.testi-card-author span {
    font-size: 12px;
    color: var(--color-text-muted);
}
.testi-card-badge {
    margin-left: auto;
    padding: 3px 10px;
    background: rgba(212,168,83,0.08);
    border: 1px solid rgba(212,168,83,0.2);
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-primary-dark);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* EMPTY STATE */
.testi-empty {
    background: var(--color-bg-warm);
    padding: 80px 0;
    text-align: center;
}
.testi-empty p {
    font-size: 18px;
    color: var(--color-text-muted);
    font-style: italic;
}

/* STARS */
.star {
    vertical-align: middle;
    margin-right: 2px;
}
.star-filled {
    color: var(--color-primary);
}
.star-empty {
    color: var(--color-border);
}

/* ANIMATIONS */
@keyframes testiFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TRIPADVISOR BANNER
============================================= */
.testi-ta-section {
    background: var(--color-bg-warm);
    padding: 0 0 24px;
}
.testi-ta-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}

/* Left green accent stripe */
.testi-ta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #34e0a1 0%, #1aa36a 100%);
    z-index: 2;
}

/* LEFT SIDE */
.testi-ta-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 36px 32px 40px;
}

.testi-ta-logo-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8faf2 0%, #d1f5e5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Subtle glow behind logo */
.testi-ta-logo-wrap::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52,224,161,0.15) 0%, transparent 70%);
    z-index: 0;
}
.testi-ta-owl {
    position: relative;
    z-index: 1;
}

.testi-ta-info {
    flex: 1;
    min-width: 0;
}

.testi-ta-brand {
    margin-bottom: 10px;
}
.testi-ta-wordmark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

/* Rating row */
.testi-ta-rating-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.testi-ta-rating-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34e0a1 0%, #1aa36a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(52,224,161,0.3);
}
.testi-ta-rating-num {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.testi-ta-rating-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.testi-ta-rating-label {
    font-size: 15px;
    font-weight: 700;
    color: #1aa36a;
    letter-spacing: 0.02em;
}
.testi-ta-rating-stars {
    display: flex;
    gap: 3px;
}

.testi-ta-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* RIGHT SIDE */
.testi-ta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 28px 36px;
    background: #faf9f6;
    border-left: 1px solid var(--color-border-light);
    min-width: 220px;
}

/* Certificate Badge */
.testi-ta-certificate {
    width: 130px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testi-ta-cert-inner {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #b8860b;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: linear-gradient(135deg, #fffdf5 0%, #f5f0e0 100%);
    position: relative;
    box-shadow: 0 4px 16px rgba(184,134,11,0.12);
}
.testi-ta-cert-ribbon {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 18px solid #b8860b;
}
.testi-ta-cert-ribbon::after {
    content: '';
    position: absolute;
    top: -21px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 14px solid #d4a853;
}
.testi-ta-cert-text {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: #8b6914;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.testi-ta-cert-year {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #b8860b;
}

/* CTA Button */
.testi-ta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #34e0a1 0%, #1aa36a 100%);
    color: #fff;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(52,224,161,0.3);
}
.testi-ta-btn:hover {
    background: linear-gradient(135deg, #2bc98e 0%, #15945e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52,224,161,0.4);
}

/* Hover animation on whole card */
.testi-ta-card {
    transition: box-shadow 0.3s ease;
}
.testi-ta-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .testi-ta-card {
        flex-direction: column;
    }
    .testi-ta-left {
        padding: 28px 24px;
    }
    .testi-ta-right {
        flex-direction: row;
        border-left: none;
        border-top: 1px solid var(--color-border-light);
        padding: 24px;
        min-width: unset;
    }
    .testi-ta-certificate {
        width: 100px;
        height: 110px;
    }
    .testi-ta-cert-inner {
        width: 90px;
        height: 90px;
    }
    .testi-ta-cert-ribbon { display: none; }
    .testi-ta-cert-text { font-size: 9px; }
}

@media (max-width: 580px) {
    .testi-ta-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        padding: 24px 20px;
    }
    .testi-ta-rating-row {
        justify-content: center;
    }
    .testi-ta-right {
        flex-direction: column;
        gap: 16px;
    }
    .testi-ta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .testi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testi-featured-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .testi-hero {
        height: 35vh;
        min-height: 260px;
    }
    .testi-stats-inner {
        grid-template-columns: repeat(3, 1fr);
    }
    .testi-stat-number {
        font-size: 26px;
    }
    .testi-featured-card {
        padding: 32px 24px;
    }
    .testi-featured-text {
        font-size: 15px;
    }
    .testi-filters {
        gap: 8px;
    }
    .testi-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
    .testi-stats-inner {
        grid-template-columns: 1fr;
    }
    .testi-stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .testi-stat:last-child {
        border-bottom: none;
    }
}