/* ✅ General Styling */
.qrw-qa-section {
    max-width: 900px;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

ul {
    margin: 0px;
}

/* ✅ Main Heading — AppSumo Style */
.qrw-main-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 24px;
}

/* ✅ Ask a Question Box */
.pq-ask-question-box {
    display: flex;
    align-items: flex-start;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.pq-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* ✅ Form Inputs */
.pq-form input {
    width: 100%;
    min-height: 60px;
    border-radius: 8px !important;
    border: 2px solid #171515 !important;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
}

.pq-form input:focus {
    border-color: #0073aa;
}

.pq-form button {
    background: #0044c0;
    color: white;
    border: none;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.pq-form button:hover {
    background: #005b8a;
}

/* ✅ Question Cards */
.pq-question-card {
    list-style: none;
    background: #ffffff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    box-shadow: 0px 1px 5px #0000003b;
}

.pq-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.pq-metas {
    display: flex;
    align-items: center;
    justify-content: start;
    font-size: 14px;
    color: #201d1d;
    margin-bottom: 10px;
}

.pq-metas img {
    width: 4%;
}

/* ✅ Answer Box */
.pq-answer {
    background-color: #d8e8ff;
    border-radius: 8px;
    padding: 10px;
    color: #151915;
    font-weight: 500;
    margin-bottom: 10px;
}

.pq-no-answer {
    color: #d9534f;
    font-style: italic;
    margin-bottom: 10px;
}

/* ✅ Footer */
.pq-footer {
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
    color: #3e8bf6;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pq-footer a {
    margin-left: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.pq-footer a:hover {
    text-decoration: underline;
}

/* ✅ Comment List */
.pq-comment-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 3px;
    border-left: 3px solid #ddd;
}

.pq-comment-list li {
    font-size: 14px;
    margin-bottom: 6px;
    color: #444;
}

/* ✅ Hidden Class */
.pq-hidden {
    display: none;
}

/* ✅ Ask a Question Button */
.pq-ask-btn {
    background: #0044c0;
    color: #fff;
    border: none;
    padding: 12px 17px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 10px;
}

.pq-ask-btn:hover {
    background: #005a87;
}

.pq-question-list {
    padding-left: 2px !important;
}

/* ============================================
   ✅ Search Bar — AppSumo Big Style
============================================ */
.pq-search-wrapper {
    display: flex;
    align-items: center;
    max-width: 680px;
    margin: 0 auto 28px auto;
    border: 1.5px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

#pq-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
    color: #333;
    background: transparent;
    box-sizing: border-box;
}

#pq-search-input::placeholder {
    color: #aaa;
}

.pq-search-arrow {
    background: #f0f0f0;
    border: none;
    border-left: 1.5px solid #ddd;
    padding: 12px 20px;
    font-size: 18px;
    color: #444;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0 50px 50px 0;
}

.pq-search-arrow:hover {
    background: #e0e0e0;
}

/* ============================================
   ✅ Tabs Navigation — AppSumo Style
============================================ */
.qrw-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    gap: 0;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 24px;
}
.qrw-tabs-nav:hover,.qrw-tabs-nav:focus {
    background-color: #fff;
}

.qrw-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.qrw-tab-btn:hover {
    color: #222;
}

.qrw-tab-btn.active {
    color: #111;
    font-weight: 700;
    border-bottom: 3px solid #1a1a1a;
}

.qrw-tab-count {
    background: #f0f0f0;
    color: #555;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.qrw-tab-btn.active .qrw-tab-count {
    background: #e8eef8;
    color: #0044c0;
}

/* ============================================
   ✅ Share Button & Dropdown
============================================ */
.pq-share-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
}

.pq-share-btn {
    background: none;
    border: 1.5px solid #0044c0;
    color: #0044c0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pq-share-btn:hover {
    background: #0044c0;
    color: #fff;
}

.pq-share-dropdown {
    position: absolute;
    bottom: 32px;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    z-index: 999;
    min-width: 160px;
    overflow: hidden;
}

.pq-share-dropdown a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: #333 !important;
    text-decoration: none !important;
    transition: background 0.15s;
    margin: 0 !important;
}

.pq-share-dropdown a:hover {
    background: #f0f4ff;
    color: #0044c0 !important;
}

/* ============================================
   ✅ REVIEWS SECTION — IMPROVED APPSUMO STYLE
============================================ */

/* Sorting & Filter Bar */
.pq-reviews-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pq-sort-wrapper {
    position: relative;
}

.pq-sort-btn {
    background: #fff;
    border: 1.5px solid #ddd;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.pq-sort-btn:hover {
    border-color: #0044c0;
    color: #0044c0;
}

.pq-sort-btn::after {
    content: '▼';
    font-size: 10px;
    color: #666;
}

.pq-sort-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 999;
    min-width: 200px;
    overflow: hidden;
    display: none;
}

.pq-sort-dropdown.pq-show {
    display: block;
}

.pq-sort-option {
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}

.pq-sort-option:last-child {
    border-bottom: none;
}

.pq-sort-option:hover {
    background: #f8f9fa;
    color: #0044c0;
}

.pq-sort-option.active {
    background: #e8f0fe;
    color: #0044c0;
    font-weight: 600;
}

/* Review Card — Enhanced */
.pq-review-card {
    list-style: none;
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pq-review-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

/* Review Header — Better Layout */
.pq-review-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.pq-review-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #f0f0f0;
}

.pq-review-user-info {
    flex: 1;
}

.pq-review-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.pq-review-user-name strong {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

/* Verified Badge */
.pq-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pq-verified-badge::before {
    content: '✓';
    font-size: 13px;
    font-weight: bold;
}

/* Review Date */
.pq-review-date {
    font-size: 13px;
    color: #777;
    display: block;
}

/* Stars — Bigger & More Visual */
.pq-stars {
    color: #ffa000;
    font-size: 18px;
    margin-top: 6px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.pq-stars span {
    display: inline-block;
}

/* Review Body */
.pq-review-body {
    font-size: 15px;
    color: #333;
    line-height: 1.7;
    margin-top: 12px;
    margin-bottom: 14px;
}

.pq-review-body p {
    margin: 0 0 10px 0;
}

/* Review Actions — Helpful/Unhelpful */
.pq-review-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.pq-helpful-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.pq-helpful-btns {
    display: flex;
    gap: 10px;
}

.pq-helpful-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pq-helpful-btn:hover {
    background: #e8f0fe;
    border-color: #0044c0;
    color: #0044c0;
}

.pq-helpful-btn.active {
    background: #0044c0;
    border-color: #0044c0;
    color: #fff;
    font-weight: 600;
}

.pq-helpful-count {
    font-weight: 600;
}

/* ============================================
   ✅ WRITE REVIEW BOX — IMPROVED
============================================ */

.pq-write-review-box {
    margin-top: 25px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pq-write-review-box h4 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

/* Star Rating Input */
.pq-star-rating {
    margin-bottom: 16px;
}

.pq-star-rating label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.pq-stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.pq-stars-input input {
    display: none;
}

.pq-stars-input label {
    font-size: 28px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
    margin: 0;
}

.pq-stars-input label:hover,
.pq-stars-input label:hover ~ label {
    color: #ffa000;
    transform: scale(1.1);
}

.pq-stars-input input:checked ~ label {
    color: #ffa000;
}

/* Review Textarea */
#pq-review-text {
    width: 100%;
    min-height: 110px;
    padding: 14px;
    border-radius: 10px;
    border: 1.5px solid #ddd;
    margin-bottom: 14px;
    resize: vertical;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
}

#pq-review-text:focus {
    border-color: #0044c0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,68,192,0.1);
}

/* Submit Button */
#pq-review-form button {
    background: linear-gradient(135deg, #0044c0 0%, #0033a0 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,68,192,0.3);
}

#pq-review-form button:hover {
    background: linear-gradient(135deg, #0033a0 0%, #002080 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,68,192,0.4);
}

/* Login Message */
.pq-write-review-box p {
    font-size: 15px;
    color: #555;
}

.pq-write-review-box a {
    color: #0044c0;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.2s;
}

.pq-write-review-box a:hover {
    border-bottom: 1px solid #0044c0;
}

/* ============================================
   ✅ FAQs SECTION — ACCORDION STYLE
============================================ */

/* FAQ Search */
.pq-faq-search-wrapper {
    margin-bottom: 20px;
}

#pq-faq-search {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s;
}

#pq-faq-search:focus {
    border-color: #0044c0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,68,192,0.1);
}

#pq-faq-search::placeholder {
    color: #999;
}

/* FAQ Items */
.pq-faq-item {
    background: #fff;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.pq-faq-item:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* FAQ Question — Clickable */
.pq-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.2s;
    gap: 14px;
}

.pq-faq-question:hover {
    background: #f0f4ff;
}

.pq-faq-question-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Question Icon */
.pq-faq-icon {
    width: 24px;
    height: 24px;
    background: #0044c0;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Arrow Icon */
.pq-faq-arrow {
    font-size: 18px;
    color: #666;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.pq-faq-item.pq-faq-open .pq-faq-arrow {
    transform: rotate(180deg);
}

/* FAQ Answer — Collapsible */
.pq-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fff;
}

.pq-faq-item.pq-faq-open .pq-faq-answer {
    max-height: 1000px;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.pq-faq-answer-content {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
}

.pq-faq-answer-content p {
    margin-bottom: 12px;
}

.pq-faq-answer-content ul,
.pq-faq-answer-content ol {
    margin-left: 20px;
    margin-bottom: 12px;
}

.pq-faq-answer-content li {
    margin-bottom: 8px;
}

/* No FAQs Found */
.pq-no-faqs {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
}

/* ============================================
   ✅ FOUNDERS SECTION — ENHANCED PROFESSIONAL
============================================ */

.pq-founders-card {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.pq-founders-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Founder Image — Larger & Better */
.pq-founders-image {
    position: relative;
    flex-shrink: 0;
}

.pq-founders-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0044c0;
    box-shadow: 0 4px 12px rgba(0,68,192,0.2);
}

/* Company Logo Badge */
.pq-company-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #0044c0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pq-company-logo img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
}

/* Founder Info */
.pq-founders-info {
    flex: 1;
}

.pq-founders-name {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pq-founder-role {
    font-size: 14px;
    color: #0044c0;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pq-founders-vendor {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}

/* Social Media Icons */
.pq-founder-social {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.pq-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.pq-social-icon:hover {
    background: #0044c0;
    color: #fff;
    transform: translateY(-2px);
}

.pq-social-icon.linkedin:hover {
    background: #0077b5;
}

.pq-social-icon.twitter:hover {
    background: #1da1f2;
}

.pq-social-icon.facebook:hover {
    background: #1877f2;
}

.pq-social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

/* Founder About */
.pq-founders-about {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
}

.pq-founders-about p {
    margin-bottom: 12px;
}

/* Founder Quote */
.pq-founder-quote {
    background: #fff;
    border-left: 4px solid #0044c0;
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pq-founder-quote-text {
    font-size: 15px;
    font-style: italic;
    color: #333;
    line-height: 1.7;
    margin: 0;
}

.pq-founder-quote-text::before {
    content: '"';
    font-size: 28px;
    color: #0044c0;
    margin-right: 4px;
    line-height: 0;
}

.pq-founder-quote-text::after {
    content: '"';
    font-size: 28px;
    color: #0044c0;
    margin-left: 4px;
    line-height: 0;
}

/* ============================================
   ✅ Loading & No Results
============================================ */
.pq-loading {
    color: #999;
    font-size: 14px;
    padding: 16px 0;
    list-style: none;
    text-align: center;
}

.pq-no-results {
    color: #888;
    font-size: 14px;
    font-style: italic;
    padding: 10px 0;
    text-align: center;
}

/* ============================================
   ✅ Comment Form (pq-comment-form4)
============================================ */
.pq-comment-form4 {
    margin-top: 12px;
}

.pq-comment-form4 textarea {
    width: 100%;
    min-height: 50px;
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 8px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.pq-comment-form4 button {
    background: #0044c0;
    color: white;
    border: none;
    margin-top: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.pq-comment-form4 button:hover {
    background: #003399;
}

/* ============================================
   ✅ Responsive: Mobile & Tablet
============================================ */
@media (max-width: 768px) {
    .pq-founders-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pq-founders-image img {
        width: 100px;
        height: 100px;
    }

    .pq-founder-social {
        justify-content: center;
    }

    .pq-reviews-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .pq-sort-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .qrw-main-heading {
        font-size: 22px;
    }
    .qrw-tabs-nav {
        gap: 2px;
    }
    .qrw-tab-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    .pq-search-wrapper {
        max-width: 100%;
    }
    #pq-search-input {
        font-size: 13px;
    }

    .pq-review-card {
        padding: 16px;
    }

    .pq-review-avatar {
        width: 44px;
        height: 44px;
    }

    .pq-helpful-btns {
        flex-direction: column;
        width: 100%;
    }

    .pq-helpful-btn {
        justify-content: center;
    }

    .pq-faq-question-text {
        font-size: 14px;
    }

    .pq-founders-image img {
        width: 90px;
        height: 90px;
    }
}

/* ============================================
   ✅ Button Hover Override Fix
============================================ */
button:hover,
button:focus {
    background-color: inherit;
    color: inherit;
    border-color: inherit;
}

/* Specific button hovers */
.pq-form button:hover,
.pq-form button:focus {
    background: #005b8a !important;
    color: white !important;
}

#pq-review-form button:hover,
#pq-review-form button:focus {
    background: linear-gradient(135deg, #0033a0 0%, #002080 100%) !important;
    color: #fff !important;
}

.pq-helpful-btn:hover,
.pq-helpful-btn:focus {
    background: #e8f0fe !important;
    border-color: #0044c0 !important;
    color: #0044c0 !important;
}

.pq-helpful-btn.active:hover,
.pq-helpful-btn.active:focus {
    background: #0044c0 !important;
    color: #fff !important;
}
button:hover,button:focus {
    background-color: white !important;
    color: #111 !important;
    border: 1 px solid #111;
}