/* HKT Elegant Testimonials CSS - Updated for Row Layout */

.hkt-testimonials-section.full-width-section {
    width: 100%;
    padding: 100px 0;
    background: linear-gradient(135deg, #fbfaf9 0%, #f0ede8 100%);
    overflow: hidden;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
}

.hkt-testimonials-container-wide {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.hkt-section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
    position: relative;
    text-transform: uppercase;
}

.hkt-section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #d4a373;
    /* Elegant Gold/Sand color */
    border-radius: 2px;
}

/* Swiper Slider Styling */
.hkt-testimonial-swiper-row {
    padding-bottom: 70px !important;
    /* Space for pagination */
    padding-top: 20px !important;
    overflow: hidden;
    /* Prevent horizontal scroll leak on wide rows */
}

.hkt-testimonial-slide-row {
    height: auto;
    /* Match heights of slides */
    transition: all 0.4s ease;
}

.hkt-testimonial-link-wrapper {
    display: block;
    height: 100%;
    text-decoration: none !important;
}

/* Review Card - Row Style */
.hkt-testimonial-card.row-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.hkt-testimonial-link-wrapper:hover .hkt-testimonial-card.row-card {
    box-shadow: 0 25px 50px rgba(212, 163, 115, 0.2);
    transform: translateY(-8px);
}

.hkt-quote-icon {
    font-size: 2.5rem;
    color: rgba(212, 163, 115, 0.3);
    margin-bottom: 25px;
    transition: color 0.3s ease;
}

.hkt-testimonial-link-wrapper:hover .hkt-quote-icon {
    color: rgba(212, 163, 115, 0.7);
}

/* Injecting a pseudo-element if FontAwesome isn't loaded */
.hkt-testimonial-card.row-card::before {
    content: "“";
    position: absolute;
    top: 15px;
    left: 30px;
    font-size: 7rem;
    color: rgba(212, 163, 115, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    transition: color 0.3s ease;
    pointer-events: none;
}

.hkt-testimonial-link-wrapper:hover .hkt-testimonial-card.row-card::before {
    color: rgba(212, 163, 115, 0.2);
}

.hkt-quote-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #555;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 40px;
    z-index: 2;
    position: relative;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Limit to 4 lines for uniform height */
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author Section */
.hkt-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
    z-index: 2;
}

.hkt-author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid #d4a373;
    padding: 3px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.hkt-testimonial-link-wrapper:hover .hkt-author-image {
    transform: scale(1.05);
}

.hkt-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hkt-author-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 5px 0;
    font-family: 'Playfair Display', Georgia, serif;
}

.hkt-author-title {
    font-size: 0.85rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Custom Pagination */
.hkt-pagination-row {
    bottom: 15px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #bbb;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #d4a373;
    opacity: 1;
    width: 24px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hkt-testimonial-card.row-card {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .hkt-testimonials-section.full-width-section {
        padding: 60px 0;
    }

    .hkt-quote-text {
        font-size: 1.05rem;
    }

    .hkt-section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .hkt-testimonials-container-wide {
        padding: 0 20px;
    }
}

/* -------------------------------------------------------------------------- */
/* HKT Page Testimonials Grid Styling (Standalone Page) */
/* -------------------------------------------------------------------------- */

.hkt-page-testimonials-wrapper {
    background-color: #111a24;
    /* deep sophisticated blue/dark gray */
    padding: 100px 5%;
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    color: #f0ede8;
    width: 100%;
}

.hkt-page-testimonials-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.hkt-page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hkt-title-accent {
    width: 60px;
    height: 3px;
    background-color: #d4a373;
    /* Gold/sand luxury accent */
    margin: 0 auto 30px auto;
}

.hkt-page-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    /* subtle light slate */
    line-height: 1.6;
}

.hkt-page-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.hkt-page-testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.hkt-page-testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 163, 115, 0.5);
    /* Gold hover border */
}

.hkt-page-quote-mark {
    font-size: 5rem;
    font-family: Georgia, serif;
    color: rgba(212, 163, 115, 0.3);
    line-height: 1;
    position: absolute;
    top: 20px;
    left: 30px;
    pointer-events: none;
}

.hkt-page-card-content {
    flex-grow: 1;
    position: relative;
    z-index: 2;
    margin-top: 30px;
}

.hkt-page-quote-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 30px;
}

.hkt-page-author-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.hkt-page-author-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hkt-page-author-image-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #d4a373;
    flex-shrink: 0;
}

.hkt-page-author-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hkt-page-author-info {
    display: flex;
    flex-direction: column;
}

.hkt-page-author-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.hkt-page-author-title {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Page Responsive Grid */
@media (max-width: 768px) {
    .hkt-page-title {
        font-size: 2.5rem;
    }

    .hkt-page-testimonials-wrapper {
        padding: 60px 20px;
    }

    .hkt-page-testimonial-card {
        padding: 30px;
    }

    .hkt-page-testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- TESTIMONIAL MODAL STYLES --- */
.hkt-page-testimonial-card {
    cursor: pointer;
}
.hkt-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hkt-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.hkt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 11, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hkt-modal-content {
    background-color: var(--hkt-bg-color, #111a24);
    border: 1px solid var(--hkt-gold-dim, #b58150);
    position: relative;
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 163, 115, 0.1);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.hkt-modal.active .hkt-modal-content {
    transform: translateY(0) scale(1);
}

.hkt-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--hkt-gold, #d4a373);
    font-size: 32px;
    font-weight: 300;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hkt-modal-close:hover {
    color: #fff;
    transform: scale(1.1);
}

.hkt-modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hkt-modal-body {
        flex-direction: row;
    }
}

.hkt-modal-image-col {
    flex: 0 0 35%;
    max-width: 35%;
    position: relative;
}

.hkt-modal-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

@media (min-width: 768px) {
    .hkt-modal-image-col img {
        border-top-right-radius: 0;
        border-bottom-left-radius: 12px;
        position: absolute;
        top: 0;
        left: 0;
        min-height: 100%;
    }
}

.hkt-modal-text-col {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hkt-modal-quote-text {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.hkt-modal-quote-text p {
    margin-bottom: 15px;
}

.hkt-modal-quote-text p:last-child {
    margin-bottom: 0;
}
