/* ============================================================
   FIX: TESTIMONIAL VIDEOS & MOBILE ALIGNMENT
   ============================================================ */

/* 1. TESTIMONIAL VIDEOS GRID */
.depoimentos-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 4rem auto 0;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    /* 177.77% é a proporção exata de 9:16 (vertical) */
    padding-top: 177.77%;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(201, 169, 110, 0.3);
    z-index: 1;
}

/* Ensure iframe fits container and stays vertical */
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    /* O 'important' aqui é vital para corrigir o bug */
    z-index: 10;
}

/* 2. MOBILE SPECIFIC ALIGNMENTS */
@media (max-width: 768px) {

    /* Testimonials Video Column */
    .depoimentos-video-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
        margin-top: 2.5rem;
    }

    .video-container {
        width: 100% !important;
        max-width: 330px !important;
        /* Ajustado para um tamanho 'grande' mas equilibrado */
        margin: 0 auto !important;
    }

    /* Hero Aligment Fixes */
    .hero-headline {
        font-size: 1.8rem !important;
        /* Reduzido levemente para não cortar */
        line-height: 1.2 !important;
        text-align: center !important;
        padding: 0 10px !important;
        margin-top: 1rem !important;
        word-break: break-word !important;
    }

    .hero-headline br {
        display: none !important;
        /* Removes forced line breaks on mobile */
    }

    .hero-subheadline {
        text-align: center !important;
        font-size: 1.05rem !important;
        padding: 0 1rem !important;
        margin-bottom: 2rem !important;
    }

    /* Adjust Badge in Hero */
    .badge {
        margin: 0 auto 1.5rem !important;
        justify-content: center !important;
    }

    /* CTA Button Centering */
    .cta-button {
        display: flex !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 0 auto !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Bullet Items centering */
    .hero-bullets {
        justify-content: center !important;
        align-items: center !important;
        margin-top: 2rem !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    /* Social Proof Hero - Mobile Centering */
    .hero-social-proof {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
        margin-top: 3rem !important;
        border-top: 1px solid rgba(201, 169, 110, 0.2);
        padding-top: 2rem !important;
    }

    .proof-divider {
        display: none !important;
    }

    /* Section Titles centering */
    .section-title,
    .section-description {
        text-align: center !important;
        padding: 0 1rem !important;
    }

    .section-label {
        text-align: center !important;
        display: block !important;
        margin-bottom: 1rem !important;
    }

    /* Oferta Section refinements */
    .urgency-badge {
        flex-direction: column !important;
        height: auto !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
    }

    .urgency-badge svg {
        display: none !important;
        /* Hide stars to save space if needed, or keep one */
    }

    /* Pain Cards Adjustment */
    .cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .pain-card {
        text-align: center !important;
        padding: 2.5rem 1.5rem !important;
    }

    .card-icon {
        margin: 0 auto 1.5rem !important;
    }

    /* Method Grid Adjustment */
    .method-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .method-card {
        flex-direction: column !important;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
    }

    .method-content svg {
        margin: 0 auto 1rem !important;
    }

    /* Beneficios Grid */
    .beneficios-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .beneficio-card {
        padding: 2rem 1.5rem !important;
    }

    /* Comparison Grid */
    .comparison-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Before After Container */
    .before-after-container {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        margin-top: 2rem !important;
    }

    .transition-icon {
        transform: rotate(90deg) !important;
        margin: 1.5rem 0 !important;
    }

    .before-box,
    .after-box {
        width: 100% !important;
        text-align: center !important;
    }

    /* 3. NEW CRITICAL FIXES FOR OBERFLOW AND ALIGNMENT */

    /* Force column layout for phase items */
    .phases-breakdown {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .phase-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 2rem 1rem !important;
        width: 100% !important;
        max-width: calc(100vw - 30px) !important;
        box-sizing: border-box !important;
        margin: 0 0 20px 0 !important;
        background: rgba(255, 255, 255, 0.05);
        /* Optional: slight background to see the card */
        border-radius: 12px;
    }

    .phase-details {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .phase-details h5 {
        font-size: 1.4rem !important;
        margin: 1rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        color: #FFFFFF !important;
    }

    .phase-details ul {
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        padding-left: 1.2rem !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        list-style-position: outside !important;
    }

    .phase-details li {
        margin-bottom: 0.8rem !important;
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .phase-badge {
        margin: 0 auto 1rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Fix Investment box overflow */
    .phase-investment {
        width: 100% !important;
        max-width: 100% !important;
        padding: 2.5rem 1.5rem !important;
        box-sizing: border-box !important;
        margin: 3rem 0 !important;
        text-align: center !important;
        border: 1px solid rgba(201, 169, 110, 0.3) !important;
    }

    .investment-value {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
        margin: 1rem 0 !important;
    }

    /* Fix Header Overflows (Image 2) */
    .section-title {
        font-size: 1.7rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
        width: 100% !important;
        padding: 0 !important;
    }

    /* Phase Results list fix */
    .results-list {
        padding-left: 1.2rem !important;
        text-align: left !important;
    }

    /* Ensure container doesn't have fixed widths that cause overflow */
    .offer-phase,
    .method-entry,
    .phase-results,
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}