﻿/* =========================================
   STYLETESTIMONIAL.CSS - Optimized Layout
   ========================================= */

body {
    background-color: #121212; /* Latar belakang gelap premium */
    font-family: 'Montserrat', sans-serif;
    color: #f5f5f5;
    margin: 0;
    overflow-x: hidden;
}

/* --- 1. HERO SECTION --- */
.testimonial-hero {
    position: relative;
    height: 50vh;
    background: url('../images/testimonial.jpg') center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(18,18,18,1));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.gold-line {
    width: 60px;
    height: 3px;
    background: #c2a45d;
    margin: 20px auto;
    border-radius: 2px;
}

.hero-desc {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- 2. FILTER & WRAPPER SECTION --- */
.testimonial-wrapper {
    padding: 60px 0 40px;
    background: #121212;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid #c2a45d;
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s ease;
    background: transparent;
}

    .filter-btn:hover, .filter-btn.active {
        background: #c2a45d;
        color: #fff;
        box-shadow: 0 0 20px rgba(194, 164, 93, 0.4);
    }

/* --- 3. TESTIMONIAL GRID (2 COLUMNS) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

.testimonial-card {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    height: 340px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

    .testimonial-card.expanded {
        height: auto;
        min-height: 300px;
        box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    }

.card-image-wrapper {
    width: 35%;
    min-width: 150px;
    height: 100%;
    background: #1c1c1e;
    overflow: hidden;
    flex-shrink: 0;
}

.review-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.quote-icon {
    font-size: 1.5rem;
    color: rgba(194, 164, 93, 0.3);
    margin-bottom: 12px;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-card.expanded .review-text {
    -webkit-line-clamp: unset;
    display: block;
}

.btn-toggle-review {
    background: none;
    border: none;
    color: #c2a45d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 0;
    margin-bottom: 15px;
    align-self: flex-start;
}

.review-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    margin-top: auto;
}

.client-name {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #c2a45d;
    margin-bottom: 4px;
}

.client-cat {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 2px;
}

/* --- 4. TESTIMONIAL CTA SECTION --- */
.testimonial-cta {
    padding: 20px 20px 80px;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-glass-container {
    width: 100%;
    max-width: 1100px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(194, 164, 93, 0.1), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-glass-container::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(194, 164, 93, 0.05) 0%, transparent 70%);
        z-index: 0;
        pointer-events: none;
    }

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    color: #c2a45d;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 15px;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}

.cta-content p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-gold-pill {
    background: #c2a45d;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid #c2a45d;
}

    .btn-gold-pill:hover {
        background: transparent;
        color: #c2a45d;
        box-shadow: 0 10px 20px rgba(194, 164, 93, 0.3);
        transform: translateY(-3px);
    }

.btn-outline-white {
    background: transparent;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

    .btn-outline-white:hover {
        background: #fff;
        color: #121212;
        transform: translateY(-3px);
    }

/* =========================================
   5. RESPONSIVE OPTIMIZATION (CLEANED)
   ========================================= */

@media (max-width: 1100px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 750px;
    }

    .testimonial-card {
        height: auto;
        min-height: 250px;
    }

    .card-image-wrapper {
        width: 30%;
    }
}

@media (max-width: 768px) {
    /* FIX BANNER HERO: Elak tajuk bertindih navbar di mobile */
    .testimonial-hero {
        align-items: flex-start !important;
        padding-top: 140px !important;
        height: auto !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-glass-container {
        padding: 50px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .testimonial-wrapper {
        padding-bottom: 20px;
    }

    .testimonial-cta {
        padding-bottom: 40px;
    }
}

@media (max-width: 550px) {
    /* KOD UTAMA: Memaksa kad KEKAL MELINTANG seperti paparan desktop */
    .testimonial-card {
        flex-direction: row !important;
        height: auto !important;
        align-items: stretch;
    }

    /* Set saiz imej yang ideal di skrin phone supaya tidak terpenyet */
    .card-image-wrapper {
        width: 110px !important;
        min-width: 110px !important;
        height: auto !important;
    }

    /* Kemaskan padding kandungan kad di phone */
    .card-content {
        padding: 15px !important;
    }

    .quote-icon {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .review-text {
        font-size: 0.85rem !important;
        -webkit-line-clamp: none !important; /* Papar penuh teks tanpa potong */
    }

    .client-name {
        font-size: 1.05rem !important;
    }

    .client-cat {
        font-size: 0.65rem !important;
    }
}
