/*
 * New Design Stylesheet — Baterias.com (Spec Landingi)
 */

/* ==========================================================================
   1. Testimonials Section (Grid & Cards)
   ========================================================================== */

/* Remove fixed height from testimonials section and container */
#GhiCBRx6ZkLoks9IKLGQ5G2iPQagkav5 {
    height: auto !important;
    min-height: unset !important;
    padding: 60px 0 !important;
}

#GhiCBRx6ZkLoks9IKLGQ5G2iPQagkav5 > .row > .container {
    height: auto !important;
    min-height: unset !important;
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* Responsiveness on tablet/mobile for the section container */
@media only screen and (max-width: 763px) {
    #GhiCBRx6ZkLoks9IKLGQ5G2iPQagkav5 > .row .container {
        width: 100% !important;
        height: auto !important;
    }
}

/* Testimonials Grid Layout */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
}

/* Centering last items if they don't fill the last row */
@media (min-width: 1025px) {
    .testimonials-grid > *:nth-child(4) {
        grid-column: 1 / 2;
    }
    .testimonials-grid > *:nth-child(5) {
        grid-column: 2 / 3;
    }
    /* Alternatively, let CSS Grid flow naturally */
    .testimonials-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3) {
        grid-column: span 2;
    }
    .testimonial-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .testimonial-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (max-width: 1024px) {
    .testimonials-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3),
    .testimonial-card:nth-child(4),
    .testimonial-card:nth-child(5) {
        grid-column: span 1 !important;
    }
}

@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Testimonial Card */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    color: #FFC107; /* Golden Yellow */
    font-size: 1.125rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-family: var(--paragraphs-font-family), "Roboto Condensed", Arial, sans-serif;
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.45;
    color: rgba(var(--color-tertiary-4), 0.8);
    margin-bottom: 20px;
    font-style: italic;
    text-align: left;
}

.testimonial-author {
    font-family: var(--headlines-font-family), "Barlow Condensed", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(var(--color-tertiary-4), 0.95);
    text-align: left;
    margin-top: auto;
}

/* ==========================================================================
   2. CTA Buttons Alignment and Centering
   ========================================================================== */

/* General overrides for centralizing text & icon inside buttons */
.widget-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

/* Specific override to remove division border of WhatsApp button */
.widget-button .widget-overlay {
    display: none !important;
}

/* Button CTA inside Testimonials Grid flow */
.testimonials-cta-wrapper {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 35px !important;
    box-sizing: border-box !important;
}

#DS6b4IgOhbz8ThMdn6pXf4cRuko8vnks {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    display: flex !important;
    max-width: 100% !important;
    box-shadow: 0 4px 14px rgba(22, 197, 87, 0.3) !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

#DS6b4IgOhbz8ThMdn6pXf4cRuko8vnks:hover {
    transform: scale(1.02);
    background-color: #15b34f !important;
}

/* CTA Icon sizing */
.btn-whatsapp-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1); /* Forces white icon color */
    display: block;
}

@media only screen and (max-width: 763px) {
    #DS6b4IgOhbz8ThMdn6pXf4cRuko8vnks {
        width: 90% !important;
        max-width: 20rem !important;
        font-size: 1.15rem !important;
        height: 4.25rem !important;
        margin: 0 !important;
        display: flex !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }
    
    #NtVHrmLfOK1AoVnU3kCINcPUe5xMvpoL {
        width: 90% !important;
        max-width: 20rem !important;
        font-size: 1.15rem !important;
        white-space: nowrap !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
    }
    #NtVHrmLfOK1AoVnU3kCINcPUe5xMvpoL .btn-whatsapp-icon {
        display: none !important;
    }
}

/* ==========================================================================
   3. WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 999999 !important;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

.whatsapp-float-btn img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1); /* Forces icon to be white */
    display: block;
}

/* WhatsApp float pulse animation */
.pulsozap { 
    animation: pulsozap 2s infinite; 
}
@keyframes pulsozap {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   4. Tag Stamina Footer
   ========================================================================== */

.stamina-footer-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: transparent;
    padding: 0;
    margin: 0;
    z-index: 10000;
}

.stamina-badge-link {
    width: fit-content;
    max-width: 90%;
    background-color: #252525;
    border-radius: 14px 14px 0 0;
    border: none;
    padding: 10px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.stamina-badge-logo {
    height: 11px;
    width: auto;
    display: block;
    transform: translateY(-2px);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.stamina-badge-link:hover {
    background-color: #2e2e2e;
    color: #ffffff;
}

.stamina-badge-link:hover .stamina-badge-logo {
    transform: translateY(-2px) scale(1.05);
}
