/**
 * Style Section Challenge CTA (Theme TwentyTwentyFive)
 *
 * @since 1.0.0
 * @package TwentyTwentyFive
 * @author Aboyit
 * @license GPL-2.0+
 */

.section-challenge-cta {
    padding: 50px 20px;
    background-color: #eeeeee;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

.challenge-cta-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ================= 1. Pill Badge Top ================= */
.challenge-badge-wrap {
    margin-bottom: 18px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.challenge-pill-badge {
    display: inline-block;
    padding: 7px 24px;
    background-color: #fffbeb;
    border: 1.5px solid #fed7aa;
    border-radius: 9999px;
    color: #b45309;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ================= 2. Tiêu Đề 3 Cấp Độ ================= */
.challenge-heading-group {
    margin-bottom: 24px;
    width: 100%;
}

.challenge-title-l1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.25;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: -0.3px;
}

.challenge-title-l2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.25;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.challenge-title-l3 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
    color: #15803d;
    text-transform: uppercase;
}

/* ================= 3. Khung Cam Kết / Lợi Ích ================= */
.challenge-benefits-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border: 2px solid #dc2626;
    border-radius: 18px;
    padding: 22px 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.challenge-benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.challenge-benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.benefit-check-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.benefit-check-icon svg {
    display: block;
}

.benefit-item-text {
    flex: 1;
}

/* ================= 4. Nút CTA 3D Đỏ Siêu Nổi Bật ================= */
.challenge-cta-action-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.challenge-btn-3d-glossy {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 34px 14px 20px;
    background: linear-gradient(180deg, #f87171 0%, #ef4444 25%, #dc2626 65%, #991b1b 100%);
    border: 3.5px solid #fecaca;
    border-radius: 9999px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.45), 0 3px 0 #7f1d1d, inset 0 2px 4px rgba(255, 255, 255, 0.85);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    overflow: visible;
}

/* Hiệu ứng phản chiếu bóng gương (glossy shine overlay) */
.challenge-btn-3d-glossy::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 14px;
    right: 14px;
    height: 46%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 9999px 9999px 40px 40px;
    pointer-events: none;
}

.challenge-btn-3d-glossy:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(185, 28, 28, 0.55), 0 4px 0 #7f1d1d, inset 0 2px 6px rgba(255, 255, 255, 0.95);
}

.challenge-btn-3d-glossy:active {
    transform: translateY(2px) scale(0.99);
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.35), 0 1px 0 #7f1d1d, inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Icon nhóm người bên trái */
.btn-avatar-icon {
    width: 58px;
    height: 58px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    z-index: 2;
}

.btn-avatar-icon svg {
    display: block;
}

/* Khối text giữa */
.btn-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.btn-main-headline {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.btn-sub-headline {
    color: #fef08a;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Icon con trỏ click bên phải */
.btn-click-pointer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: pointerPulse 1.6s infinite ease-in-out;
}

.btn-click-pointer svg {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pointerPulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.12) translate(3px, -3px);
    }
}

/* ================= Responsive Mobile ================= */
@media (max-width: 768px) {
    .section-challenge-cta {
        padding: 35px 15px;
    }

    .challenge-pill-badge {
        font-size: 13px;
        padding: 6px 16px;
    }

    .challenge-title-l1 {
        font-size: 24px;
    }

    .challenge-title-l2 {
        font-size: 21px;
    }

    .challenge-title-l3 {
        font-size: 18px;
    }

    .challenge-benefits-card {
        padding: 16px 18px;
    }

    .challenge-benefit-item {
        font-size: 14.5px;
        gap: 10px;
    }

    .challenge-btn-3d-glossy {
        padding: 10px 18px 12px 14px;
        gap: 10px;
        width: 100%;
        max-width: 460px;
    }

    .btn-avatar-icon {
        width: 44px;
        height: 44px;
    }

    .btn-avatar-icon svg {
        width: 26px;
        height: 26px;
    }

    .btn-main-headline {
        font-size: 18px;
    }

    .btn-sub-headline {
        font-size: 13px;
    }

    .btn-click-pointer svg {
        width: 32px;
        height: 32px;
    }
}
