/**
 * AL Testimonials CSS - v10 FIGMA FONT & COLOR MIGRATION
 * Dev: Paul .Y 20260202
 *
 * v10: Roboto → Afacad Flux, #5A4F42 → #2A2A2A (Dark-Text)
 *      All spacing matched to Figma Tailwind tokens:
 *        gap-7 = 28px, gap-3.5 = 14px, gap-14 = 56px
 *        px-7 = 28px, py-10 = 40px, w-12 = 48px avatar
 *      Featured bg: #47614D (Primary)
 * v9:  Production fix for dot z-index
 * v8:  Simple carousel, no tripling
 *
 * Figma tokens:
 *   Dark-Text:   #2A2A2A  (titles, body, author — standard cards)
 *   White:       #FFFFFF  (featured card text)
 *   Primary:     #47614D  (featured card bg, dot active-hover)
 *   outline-300: #E8E5DF  (standard card border)
 *   bg-200:      #EFEDEB  (carousel slide bg)
 */


/* ============================================================
   1. HOMEPAGE CAROUSEL - DESKTOP (PEEK EFFECT)
   ============================================================ */

.al-carousel {
    width: 100%;
    max-width: 740px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.al-carousel-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.al-carousel-track {
    display: flex;
    gap: 28px;                  /* gap-7 */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.al-carousel-slide {
    flex-shrink: 0;
    width: 510px;
    background: #EFEDEB;        /* bg-200 */
    padding: 28px;              /* px-7 */
    box-sizing: border-box;
    opacity: 0.4;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.al-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hp-testimonials-right {
    overflow: hidden !important;
}

.al-carousel-card {
    width: 450px;
    display: flex;
    flex-direction: column;
    gap: 28px;                  /* gap-7 */
}

.al-carousel-img {
    width: 450px;
    height: 250px;
    object-fit: cover;
    display: block;
}

.al-carousel-img-placeholder {
    width: 450px;
    height: 250px;
    background: #D9D9D9;
}

.al-carousel-content {
    display: flex;
    flex-direction: column;
    gap: 56px;                  /* gap-14 */
}

.al-carousel-text {
    display: flex;
    flex-direction: column;
    gap: 14px;                  /* gap-3.5 */
}

/* Title — Afacad Flux 20px 400 Dark-Text */
.al-carousel-title {
    margin: 0;
    padding: 0;
    color: #2A2A2A;
    font-size: 20px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;           /* font-normal */
    line-height: 1.4;
}

/* Quote — Afacad Flux 18px 300 Dark-Text */
.al-carousel-quote {
    margin: 0;
    padding: 0;
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;           /* font-light */
    line-height: 1.6;
}

/* Author — Afacad Flux 20px 400 Dark-Text */
.al-carousel-author {
    margin: 0;
    padding: 0;
    color: #2A2A2A;
    font-size: 20px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;           /* font-normal */
}


/* ============================================================
   PAGINATION DOTS
   ============================================================ */

.al-carousel-dots {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 0 !important;
    padding: 10px 0 !important;
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
}

.al-carousel-dot {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 50% !important;
    background: #E8E5DF !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    position: relative !important;
    z-index: 1001 !important;
    pointer-events: auto !important;
}

.al-carousel-dot:hover {
    background: #47614D !important;
    transform: scale(1.2);
}

.al-carousel-dot.active {
    background: #2A2A2A !important;   /* Dark-Text for active dot */
}

.al-carousel-dot:focus,
.al-carousel-dot:active {
    outline: 2px solid #2A2A2A;
    outline-offset: 2px;
}


/* ============================================================
   2. MOBILE SOLO MODE (<=1038px)
   ============================================================ */

@media screen and (max-width: 1038px) {

    .al-carousel {
        gap: 30px !important;
        z-index: 1;
    }

    .al-carousel-track {
        display: block !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 1;
    }

    .al-carousel-slide {
        display: none !important;
        width: 100% !important;
        padding: 20px !important;
        opacity: 1 !important;
        transform: none !important;
        z-index: 1;
    }

    .al-carousel-slide.active {
        display: block !important;
        z-index: 2;
    }

    .al-carousel-card {
        width: 100% !important;
    }

    .al-carousel-img,
    .al-carousel-img-placeholder {
        width: 100% !important;
        height: 220px !important;
    }

    .al-carousel-title {
        font-size: 18px !important;
    }

    .al-carousel-quote {
        font-size: 16px !important;
    }

    .al-carousel-author {
        font-size: 16px !important;
    }

    .al-carousel-dots {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 1000 !important;
        pointer-events: auto !important;
    }

    .al-carousel-dot {
        z-index: 1001 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
}

@media screen and (max-width: 600px) {
    .al-carousel-slide {
        padding: 15px !important;
    }

    .al-carousel-img,
    .al-carousel-img-placeholder {
        height: 180px !important;
    }

    .al-carousel-content {
        gap: 30px !important;
    }
}


/* ============================================================
   3. TESTIMONIALS GRID PAGE
   Figma: w-[1200px] gap-7 (28px)
   Standard cards: w-[585px] px-7 py-10 bg-White outline-300
   Featured cards: self-stretch bg-neutral-600 (#47614D)
   ============================================================ */

.testimonials-grid-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;                  /* gap-7 */
    padding: 0;
}

/* --- ROW LAYOUT --- */

.testimonial-row {
    display: flex;
    gap: 28px;                  /* gap-7 */
    width: 100%;
}

.testimonial-row-standard {
    justify-content: flex-start;
    align-items: stretch;
}

.testimonial-row-featured {
    justify-content: stretch;
}


/* --- STANDARD CARD (White, bordered) --- */

.testimonial-card-standard {
    width: 585px;
    flex: 0 0 auto;
    background: #FFFFFF;
    outline: 1px solid #E8E5DF;    /* outline-300 */
    outline-offset: -1px;
    box-sizing: border-box;
}

.testimonial-card-standard .testimonial-card-inner {
    padding: 40px 28px;            /* py-10 px-7 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.testimonial-card-standard .testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 56px;                     /* gap-14 */
}

.testimonial-card-standard .testimonial-text {
    display: flex;
    flex-direction: column;
    gap: 14px;                     /* gap-3.5 */
}

/* Title — Afacad Flux 20px 400 Dark-Text */
.testimonial-card-standard .testimonial-title {
    margin: 0;
    padding: 0;
    color: #2A2A2A;
    font-size: 20px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;              /* font-normal */
    line-height: 1.4;
}

/* Quote — Afacad Flux 18px 300 Dark-Text */
.testimonial-card-standard .testimonial-quote {
    margin: 0;
    padding: 0;
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;              /* font-light */
    line-height: 1.6;
}

/* Author row — gap-3.5 (14px) */
.testimonial-card-standard .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;                     /* gap-3.5 */
}

/* Avatar — w-12 h-12 (48px) */
.testimonial-card-standard .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card-standard .testimonial-avatar-placeholder {
    background: #E8E5DF;
}

/* Author name — Afacad Flux 20px 400 Dark-Text */
.testimonial-card-standard .testimonial-author-name {
    flex: 1;
    color: #2A2A2A;
    font-size: 20px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;              /* font-normal */
}


/* --- FEATURED CARD (Primary bg, white text) --- */

.testimonial-card-featured {
    width: 100%;
    flex: 1;
    background: #47614D;           /* Primary */
    box-sizing: border-box;
}

.testimonial-card-featured .testimonial-card-inner {
    padding: 40px 28px;            /* py-10 px-7 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card-featured .testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 56px;                     /* gap-14 */
}

.testimonial-card-featured .testimonial-text {
    display: flex;
    flex-direction: column;
    gap: 14px;                     /* gap-3.5 */
}

/* Title — Afacad Flux 20px 400 White */
.testimonial-card-featured .testimonial-title {
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    font-size: 20px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;              /* font-normal */
    line-height: 1.4;
}

/* Quote — Afacad Flux 18px 300 White */
.testimonial-card-featured .testimonial-quote {
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    font-size: 18px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;              /* font-light */
    line-height: 1.6;
}

/* Author row — gap-3.5 (14px) */
.testimonial-card-featured .testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;                     /* gap-3.5 */
}

/* Avatar — w-12 h-12 (48px) */
.testimonial-card-featured .testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card-featured .testimonial-avatar-placeholder {
    background: rgba(255, 255, 255, 0.3);
}

/* Author name — Afacad Flux 20px 400 White */
.testimonial-card-featured .testimonial-author-name {
    flex: 1;
    color: #FFFFFF;
    font-size: 20px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;              /* font-normal */
}


/* --- GRID PAGINATION --- */

.testimonials-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 20px 0;
}

.testimonials-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #FFFFFF;
    border: 1px solid #E8E5DF;
    color: #2A2A2A;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-radius: 4px;
}

.testimonials-pagination .page-numbers.current {
    background: #47614D;
    border-color: #47614D;
    color: #FFFFFF;
}


/* --- GRID RESPONSIVE --- */

@media (max-width: 1024px) {
    .testimonials-grid-container {
        max-width: 100%;
        padding: 0 40px;
    }

    .testimonial-row-standard {
        flex-direction: column;
    }

    .testimonial-card-standard {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .testimonials-grid-container {
        padding: 0 20px;
        gap: 20px;
    }

    .testimonial-card-standard .testimonial-card-inner,
    .testimonial-card-featured .testimonial-card-inner {
        padding: 30px 20px;
    }

    .testimonial-card-standard .testimonial-title,
    .testimonial-card-featured .testimonial-title {
        font-size: 18px;
    }

    .testimonial-card-standard .testimonial-quote,
    .testimonial-card-featured .testimonial-quote {
        font-size: 16px;
    }

    .testimonial-card-standard .testimonial-content,
    .testimonial-card-featured .testimonial-content {
        gap: 40px;
    }
}


/* ============================================================
   4. UTILITY
   ============================================================ */

.no-testimonials {
    text-align: center;
    padding: 60px 20px;
    color: #2A2A2A;
    font-size: 18px;
    font-family: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
}