/* ============================================
   PEOPLE ALSO ASK - CORE WEB VITALS OPTIMIZED
   ============================================ */

/* DEFERRED CSS - Load after page render */
.paa-loading-container {
    background-color: #f8fbf9;
    padding: 0;
    border-radius: 0 0 5px 5px;
    margin: -5px 0 25px 0;
    border: 1px solid #dce7df;
    border-top: none;
    width: 100%;
    font-family: sans-serif;
    contain: content; /* Prevents layout shifts */
}

.paa-item {
    background: #f8fbf9;
    border-bottom: 1px solid #e0e0e0;
    min-height: 60px; /* Prevents CLS */
}

.paa-item:last-child {
    border-bottom: none;
}

.paa-question-btn:hover {
    background-color: #f0f7f2;
}

.paa-arrow {
    width: 20px;
    height: 20px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

[aria-expanded="true"] .paa-arrow {
    transform: rotate(180deg);
    color: #006400;
}

.paa-answer-box {
    display: none;
    padding: 0 20px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    contain: content;
}

[aria-expanded="true"] + .paa-answer-box {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.answer-content {
    padding: 18px 0;
    color: #333;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
    font-weight: 400;
    font-family: sans-serif;
}

/* No layout shift animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .paa-main-title {
        font-size: 1.2rem;
        padding: 10px 14px;
        margin: 12px 0 8px 0;
    }
    
    .paa-loading-container {
        margin: -4px 0 20px 0;
    }
    
    .paa-question-btn {
        padding: 16px 18px;
    }
    
    .question-text {
        font-size: 15px;
        padding-right: 16px;
    }
    
    .paa-answer-box {
        padding: 0 18px;
    }
    
    .answer-content {
        padding: 16px 0;
        font-size: 14px;
    }
    
    .paa-arrow {
        width: 18px;
        height: 18px;
    }
}