/**
 * Pain Points Grid Block - Frontend Styles
 * Matches Problem Solution Block styling
 */

/* Block Container */
.taskipfb-pain-points-block {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Container */
.taskipfb-pain-points-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.taskipfb-pain-points-header {
    text-align: center;
    margin-bottom: 60px;
}

.taskipfb-section-label {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: #10b981;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.taskipfb-main-heading {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.taskipfb-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Pain Points Grid */
.taskipfb-pain-points-grid {
    display: grid;
    gap: 24px;
}

/* Pain Point Cards - Matching Problem Solution Block */
.taskipfb-pain-point-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    border: 1px solid;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.taskipfb-pain-point-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Number with double circle design - Matching Problem Solution Block */
.taskipfb-pain-point-number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    margin-left: 0px;
    margin-top: 8px;
}

.taskipfb-pain-point-number:after {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 1px solid #10b981;
    display: inline-block;
    content: "";
    border-radius: 50%;
}

/* Content */
.taskipfb-pain-point-content {
    flex: 1;
}

.taskipfb-pain-point-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 5px;
}

.taskipfb-pain-point-content p {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .taskipfb-main-heading {
        font-size: 32px;
    }

    .taskipfb-description {
        font-size: 16px;
    }

    .taskipfb-pain-points-header {
        margin-bottom: 40px;
    }

    .taskipfb-pain-point-card {
        padding: 25px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .taskipfb-pain-points-container {
        padding: 0 16px;
    }

    .taskipfb-main-heading {
        font-size: 24px;
    }

    .taskipfb-description {
        font-size: 14px;
    }

    .taskipfb-section-label {
        font-size: 12px;
        padding: 6px 16px;
    }

    .taskipfb-pain-points-header {
        margin-bottom: 30px;
    }

    .taskipfb-pain-points-grid {
        grid-template-columns: 1fr !important;
    }

    .taskipfb-pain-point-card {
        padding: 20px;
        gap: 15px;
    }

    .taskipfb-pain-point-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .taskipfb-pain-point-content h3 {
        font-size: 17px;
    }

    .taskipfb-pain-point-content p {
        font-size: 14px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.taskipfb-pain-point-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.taskipfb-pain-point-card:nth-child(1) {
    animation-delay: 0.1s;
}

.taskipfb-pain-point-card:nth-child(2) {
    animation-delay: 0.2s;
}

.taskipfb-pain-point-card:nth-child(3) {
    animation-delay: 0.3s;
}

.taskipfb-pain-point-card:nth-child(4) {
    animation-delay: 0.4s;
}

.taskipfb-pain-point-card:nth-child(5) {
    animation-delay: 0.5s;
}

.taskipfb-pain-point-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* Accessibility */
.taskipfb-pain-point-card:focus-within {
    outline: 3px solid rgba(16, 185, 129, 0.4);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .taskipfb-pain-points-block {
        page-break-inside: avoid;
    }

    .taskipfb-pain-point-card {
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }
}
