/* ================= SINGLE QUESTION PAGE ================= */
.uqa-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #E5E7EB;
    overflow: hidden;
    padding: 1.25rem; /* p-5 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    transition: box-shadow 0.2s ease-in-out; /* transition-shadow duration-200 */

    @media (min-width: 640px) {
        gap: 12px;
        padding: 1.875rem; /* 2xl:p-[1.875rem] */
    }
}

.uqa-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
}

/* SHARE WRAPPER */
.uqa-share-wrap {
    position: relative;
    display: inline-block;
}

/* SHARE MENU - hidden by default */
.uqa-share-menu {
    position: absolute;
    top: 100%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    display: none;
    padding: 5px;
    flex-direction: row;
    align-items: center;

    @media (min-width: 640px) {
        min-width: max-content;
        padding: 10px;
        right: 0px;
    }
}
.uqa-single-answer-actions {
    .uqa-share-menu {
        right: 0px;
    }
}

/* Show on hover of wrapper OR button */
.uqa-share-wrap:hover .uqa-share-menu,
.uqa-share-wrap:focus-within .uqa-share-menu {
    display: flex;
}

/* Share menu items */
.uqa-share-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.uqa-share-menu img,
.uqa-share-menu svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* ================= LIKE ================= */
.uqa-like-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    cursor: pointer;
}

.pld-like-dislike-wrap,
.pld-common-wrap {
    margin: 0 !important;
    min-width: 40px !important;

    @media (min-width: 640px) {
        min-width: 30px !important;
    }
}

.uqa-like-text {
    color: #495057;
    line-height: 24px;
    font-size: 16px;
}

.uqa-reply-meta-wrap,
.uqa-answer-meta-wrap {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;

    @media (min-width: 640px) {
        flex-direction: row;
        justify-content: space-between;
        gap: 5px;
    }
}

.uqa-button {
    padding: 8px 13px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #FFFFFF;
    background-color: #4361EE;
    border-radius: 10px;
    border: 1px solid #4361EE;
}

.uqa-cancel-reply {
    padding: 8px 13px;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    color: #FFFFFF;
    background-color: #F72585;
    border-radius: 10px;
    border: 1px solid #F72585;
}

.uqa-instruction{
    color: #000;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}

/* ================= ANSWER FORM ================= */
.uqa-answer-form {
    gap: 16px;

    @media (min-width: 640px) {
        gap: 24px;
    }
}

/* Title */
.uqa-answer-title {
    font-size: 18px;
    font-weight: 600;
    color: #212529;

    @media (min-width: 640px) {
        font-size: 20px;
    }
}

/* Editor wrapper */
.uqa-answer-editor textarea {
    width: 100%;
    min-height: 140px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #DEE2E6;
    font-size: 15px;
    color: #495057;
    line-height: 26px;
    resize: vertical;
}

/* Focus state */
.uqa-answer-editor textarea:focus {
    outline: none;
    border-color: #3A0CA3;
    box-shadow: 0 0 0 3px rgba(58, 12, 163, 0.15);
}

/* Instruction text */
.uqa-answer-editor .uqa-instruction,
.uqa-answer-editor small,
.uqa-answer-editor p {
    font-size: 14px;
    color: #495057;
    margin-top: 6px;
}

.uqa-instruction {
    width: 65%;
}

.uqa-answer-count {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    color: #212529;
    letter-spacing: 0%;
}

/* Main Container */
.uqa-single-main {
    margin-left: auto;
    margin-right: auto;
    max-width: 85.375rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1.875rem;
    padding-bottom: 1.875rem;

    @media (min-width: 1536px) {
        padding-top: 3.125rem;
        padding-bottom: 3.125rem;
    }
}

/* Grid Container */
.uqa-single-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;

    @media (min-width: 1024px) {
        grid-template-columns: repeat(10, minmax(0, 1fr));
    }

    @media (min-width: 1280px) {
        gap: 1.875rem;
    }
}

/* Content Section */
.uqa-single-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .uqa-single-content {
        grid-column: span 7 / span 7;
        gap: 1.875rem;
    }
}

/* Breadcrumb */
.uqa-single-breadcrumb {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.375rem;
    font-weight: 400;
}

@media (min-width: 1024px) {
    .uqa-single-breadcrumb {
        font-size: 1rem;
        line-height: 1.625rem;
    }
}

.uqa-single-breadcrumb-bold {
    font-weight: 500;
}

/* Question Card */
.uqa-single-question-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #DEE2E6;
    /* overflow: hidden; */
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    padding: 1.25rem;
    min-width: 100%;
    
    @media (min-width: 1024px) {
     min-width: 920px;
     gap: 1.875rem;
    }
    @media (min-width: 1280px) {
        padding: 1.875rem;
    }
}

.uqa-single-question-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* Tags Container */
.uqa-single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Tag Badge */
.uqa-single-tag {
    border-radius: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 0.3125rem;
    padding-bottom: 0.3125rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #3A0CA3;
    color: #FFFFFF;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Question Title */
.uqa-single-question-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: #000000;
}

@media (min-width: 640px) {
    .uqa-single-question-title {
        font-size: 1.5rem;
    }
}

/* Question Content */
.uqa-single-question-content {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.375rem;
    font-weight: 400;
    overflow-wrap: anywhere;
    word-break: break-word;

    @media (min-width: 1024px) {
        font-size: 1rem;
        line-height: 1.625rem;
    }
}

/* Question Meta */
.uqa-single-question-meta {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    justify-content: space-between;

    @media (min-width: 1024px) {
        flex-direction: row;
    }
}



/* Author Info */
.uqa-single-author-info {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;

    @media (min-width: 640px) {
        gap: 1rem;
    }
}

/* Author Details */
.uqa-single-author-details {
    display: flex;
    flex-direction: column;
}

/* Author Link */
.uqa-single-author-link {
    color: #495057;
    font-size: 1rem;
    font-weight: 400;
}

.uqa-single-author-link a:hover {
    text-decoration: underline;
}

/* Meta Info */
.uqa-single-meta-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #495057;

    @media (min-width: 640px) {
        gap: 1rem;
        font-size: 0.875rem;
    }
}

/* Meta Item */
.uqa-single-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Meta Icon */
.uqa-single-meta-icon {
    width: 1rem;
    height: 1rem;
    object-fit: cover;
}

/* Action Buttons */
.uqa-single-actions {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;

    @media (min-width: 640px) {
        justify-content: flex-end;
    }
}

/* Share Icon */
.uqa-single-actions {
    .uqa-single-share-icon {
        margin-top: 12px;
        width: 24px;
        height: 24px;
        object-fit: cover;
    }
}

/* Action Icon */
.uqa-single-action-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: cover;
}

/* Answer Card */
.uqa-single-answer-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #DEE2E6;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.9375rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    @media (min-width: 1280px) {
        padding: 1.875rem;
    }
}
.uqa-single-answer-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
}

/* Answer Content */
.uqa-single-answer-content {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.375rem;
    overflow-wrap: anywhere;
    word-break: break-word;

    @media (min-width: 1024px) {
        font-size: 1rem;
        line-height: 1.625rem;
    }
}


/* Answer Meta */
.uqa-single-answer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    
    @media (min-width: 640px) {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Answer Author */
.uqa-single-answer-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Answer Author Name */
.uqa-single-answer-author-name {
    font-weight: 500;
    color: #212529;
}

/* Answer Author Time */
.uqa-single-answer-author-time {
    font-size: 0.75rem;
    color: #6C757D;
}

/* Answer Actions */
.uqa-single-answer-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: #495057;
    
    @media (min-width: 640px) { 
        gap: 20px;
    }
}

/* Reply Accordion */
.uqa-single-reply-accordion {
    border: none;
    transition: all 0.3s ease;
}

.uqa-single-reply-accordion summary {
    outline: none;
    user-select: none;
}

.uqa-single-reply-accordion summary::-webkit-details-marker {
    display: none;
}

.uqa-single-reply-accordion summary::before {
    content: '';
    display: none;
}

/* Reply Summary */
.uqa-single-reply-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #3A0CA3;
    transition: color 0.2s ease;
}

.uqa-single-reply-summary:hover {
    color: #2a0a82;
}

/* Reply Icon */
.uqa-single-reply-icon {
    width: 24px;
    height: 24px;
}

/* Reply Summary Text */
.uqa-single-reply-summary-text {
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

/* Reply Arrow */
.uqa-single-reply-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.uqa-single-reply-accordion[open] .uqa-single-reply-arrow,
.uqa-single-reply-accordion.open .uqa-single-reply-arrow {
    transform: rotate(180deg);
}

/* Replies Container */
.uqa-single-replies {
    margin-top: 1.25rem;
    display: none; /* Initially hidden */
    flex-direction: column;
    gap: 1.25rem;
    border-top: 1px solid #DEE2E6;
    padding-top: 1rem;
}

/* Animation for showing replies */
.uqa-single-replies.show {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Replies Label */
.uqa-single-replies-label {
    color: #495057;
    font-size: 0.875rem;
    font-weight: 400;

    @media (min-width: 1024px) {
        font-size: 1rem;
    }
}

/* Reply Item */
.uqa-single-reply-item {
    display: flex;
    flex-direction: column;
    gap: 8px; 

    @media (min-width: 768px) {
      flex-direction: row;
    }
}

/* Reply Avatar */
.uqa-single-avatar {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
}
.uqa-single-user {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #787878;
    border: 2px solid #FFFFFF;
    border-radius: 9999px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    margin: 0;
    padding: 0;
}
/* Reply Content */
.uqa-single-reply-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1 1 0%;
}

/* Reply Meta */
.uqa-single-reply-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 16px;
    line-height: 24px;
    color: #6C757D;
}

/* Reply Text */
.uqa-single-reply-text {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.375rem;
    font-weight: 400;
}

/* Reply Actions */
.uqa-single-reply-actions {
    display: flex;
    flex-direction: row;
    gap: 0.625rem;
    align-items: center;
}

/* Reply Like */
.uqa-single-reply-like {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 400;
    color: #495057;
}

.uqa-single-reply-like div {
    margin: 0 !important;
}

.uqa-single-reply-like .pld-like-wrap {
    margin: 0 !important;
}

/* Reply Share Button */
.uqa-single-reply-share-btn {
    position: relative;
}

/* Reply Share Icon */
.uqa-single-reply-share-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: cover;
    margin-top: 0.25rem;
}

/* Reply Share Menu */
.uqa-single-reply-share-menu {
    display: none;
    position: absolute;
    top: 100%;
    background: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 50;
    border-radius: 0.375rem;
}

/* Show on hover */
.uqa-single-reply-share-btn:hover .uqa-single-reply-share-menu {
    display: block;
}

.uqa-single-reply-share-menu.show {
    display: block;
}

.uqa-single-reply-share-menu.hidden {
    display: none;
}

/* Reply Share Menu Inner */
.uqa-single-reply-share-menu-inner {
    padding: 0.625rem;
}

@media (min-width: 640px) {
    .uqa-single-reply-share-menu-inner div {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.25rem !important;
    }
}

/* Nested Reply Accordion */
.uqa-single-nested-reply-accordion {
    border: none;
    transition: all 0.3s ease;
}

.uqa-single-nested-reply-accordion summary {
    outline: none;
    user-select: none;
}

.uqa-single-nested-reply-accordion summary::-webkit-details-marker {
    display: none;
}

.uqa-single-nested-reply-accordion summary::before {
    content: '';
    display: none;
}

/* Nested Reply Summary */
.uqa-single-nested-reply-summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #495057;
    padding-top: 0.625rem;
    transition: color 0.2s ease;
}

.uqa-single-nested-reply-summary:hover {
    color: #3A0CA3;
}

/* Nested Reply Container */
.uqa-single-nested-reply-container,
.uqa-replies {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
}

/* Nested Reply Item */
.uqa-single-nested-reply-item {
    display: flex;
    gap: 0.75rem;
}

/* Nested Reply Avatar */
.uqa-single-nested-reply-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
}
/* Nested Reply Arrow */
.uqa-single-nested-reply-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* When accordion is open */
.uqa-single-nested-reply-accordion[open] .uqa-single-nested-reply-arrow,
.uqa-single-nested-reply-accordion.open .uqa-single-nested-reply-arrow {
    transform: rotate(180deg);
}

/* Nested Reply Content */
.uqa-single-nested-reply-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 1 0%;
}

/* Nested Reply Form */
.uqa-single-nested-reply-form {
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    border: 1px solid #DEE2E6;
}

/* Pagination Container */
.uqa-single-pagination {
    display: flex;
    justify-content: center;
}
/* Hide default details behavior */
.uqa-single-nested-reply-accordion summary {
    list-style: none;
    cursor: pointer;
}

/* Accordion wrapper */
.uqa-single-nested-reply-content-wrapper {
    max-height: 0;
    /* overflow: hidden; */
    transition: max-height 0.35s ease;
    display: none;
    border-left: 1px solid #E5E7EB;
    padding-left: 8px;
    margin-left: 4px;
}

.uqa-reply-children {
    border-top: 1px solid #DEE2E6;
    padding-top: 10px;
    margin-top: 10px;
}

.uqa-single-nested-reply-content-wrapper.open {
    max-height: 3000px;
    display: block;
}

.uqa-answer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.uqa-reply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* ================= PAGINATION ================= */
.uqa-pagination-wrapper {
    display: flex;
    justify-content: center;
}

.uqa-pagination {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;

    @media (max-width: 640px) {
        gap: 6px;
    }
}

.uqa-pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    color: #212529;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 26px;

    @media (max-width: 640px) {
        min-width: 36px;
        height: 36px;
        padding: 8px;
        font-size: 14px;
        line-height: 22px;
    }
}

.uqa-pagination-link:hover {
    background: #DEE2E6;
    color: #212529;
}

.uqa-pagination-link.active {
    background: #FF0079;
    border-color: #FF0079;
    color: #FFFFFF;
}

.uqa-pagination-link.active:hover {
    background: #F72585;
    border-color: #F72585;
    color: #FFFFFF;
}

.uqa-pagination-link.disabled {
    color: #868E96;
    cursor: not-allowed;
    pointer-events: none;
}

.uqa-pagination-link.disabled.active {
    background: transparent !important;
    color: #868E96 !important;
    border-color: transparent !important;
}

.uqa-pagination-prev,
.uqa-pagination-next {
    gap: 10px;
    padding: 10px;
    font-weight: 400;
    @media (max-width: 640px) {
        padding: 8px;
        font-size: 14px;
    }
}

.uqa-pagination-prev img,
.uqa-pagination-next img {
    width: 10px;
    height: 10px;
    object-fit: cover;

    @media (max-width: 640px) {
        width: 8px;
        height: 8px;
    }
}

.uqa-pagination-prev img {
    transform: rotate(180deg);
}

.uqa-pagination-link.disabled img {
    opacity: 0.4;
}

.uqa-pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #212529;
    font-size: 16px;
    font-weight: 400;
    padding: 10px;
    line-height: 26px;
    @media (max-width: 640px) {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
        padding: 8px;
        line-height: 22px;
    }
}

.uqa-pagination-link.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.uqa-pagination-link.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid #FF0079;
    border-radius: 50%;
    animation: uqa-spin 0.8s linear infinite;
}

@keyframes uqa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hidden replies styling */
.uqa-reply-hidden {
    display: none;
}

.uqa-replies-toggle-inner {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.uqa-replies-toggle-text {
    color: #3A0CA3;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    text-underline-offset: 2px;


    @media (min-width: 640px) {
        font-size: 1rem;
        line-height: 26px;
    }
}

.uqa-replies-toggle-text:hover {
    color: #2a0a82;
    text-decoration: none;
}

.uqa-replies-toggle-text .uqa-single-reply-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Arrow rotation for expanded state */
.uqa-replies-toggle-text.expanded .uqa-single-reply-arrow {
    transform: rotate(180deg);
}

/* Show All Replies Button (deprecated - keeping for reference) */
.uqa-show-all-replies-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.uqa-show-all-replies-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid #DEE2E6;
    background-color: #ffffff;
    border-radius: 0.625rem;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;

    @media (min-width: 640px) {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

.uqa-show-all-replies-btn:hover {
    background-color: #F8F9FA;
    border-color: #3A0CA3;
    color: #3A0CA3;
}

.uqa-show-all-replies-btn.expanded {
    background-color: #3A0CA3;
    border-color: #3A0CA3;
    color: #ffffff;
}

.uqa-show-all-replies-btn.expanded:hover {
    background-color: #2a0a82;
    border-color: #2a0a82;
}

.uqa-show-all-replies-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500; 

    @media (min-width: 640px) {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

.uqa-show-all-replies-arrow {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.uqa-answer-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ================= similar QUESTIONS ================= */
.uqa-similar-questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 1.25rem */
    background-color: #ffffff;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #E5E7EB;
    overflow: hidden;
    padding: 1.25rem; /* p-5 */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
    transition: box-shadow 0.2s ease-in-out; /* transition-shadow duration-200 */

    @media (min-width: 640px) {
        gap: 1.875rem;     /* 2xl:gap-[1.875rem] */
        padding: 1.875rem; /* 2xl:p-[1.875rem] */
    }
}
.uqa-similar-questions-container:hover {
      box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
      0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
}
.uqa-similar-questions {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 1.25rem */

    @media (min-width: 640px) {
        gap: 1.875rem;     /* 2xl:gap-[1.875rem] */
    }
}
.uqa-similar-questions h2 {
    font-size: 16px; /* 1rem - text-base */
    line-height: 24px; /* leading-5 */
    font-weight: 600; /* font-semibold */
    color: #212529;

    @media (min-width: 640px) {
        font-size: 1.25rem; /* 20px - text-xl */
        line-height: 28px; /* leading-7 */
    }
}

/* Similar Questions Styles */
.uqa-similar-questions ul {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem; /* 5px */
    color: #495057;
    font-size: 0.875rem; /* 14px - text-sm */
    font-weight: 400; /* font-normal */

    @media (min-width: 640px) {
        gap: 0.625rem; /* 10px - lg:gap-[0.625rem] */
    }
}
.uqa-similar-questions ul li {
  padding: 0 0 0.5rem 0;
  border-bottom: 1px solid #DEE2E6;
}
.uqa-similar-questions ul li:last-child {
  border-bottom: none;
}
.uqa-similar-questions a {
    font-weight: 500; /* font-medium */
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.uqa-similar-questions a:hover {
    color: #1E4CFF;
}
.uqa-similar-questions .answer-count {
    font-size: 0.75rem; /* 12px - text-xs */
    line-height: 18px;
    color: #868E96;
}

.uqa-single-left-sidebar,
.uqa-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* gap-5 */

  @media (min-width: 1280px) {
    gap: 1.875rem; /* xl:gap-[1.875rem] */
  }
}

/* LG breakpoint (≥1024px) */
@media (min-width: 1024px) {
  .uqa-single-sidebar {
    grid-column: span 3 / span 3; /* lg:col-span-3 */
  }
}
/* LG breakpoint (≥1024px) */
@media (min-width: 1024px) {
  .uqa-single-left-sidebar  {
    grid-column: span 7 / span 7; /* lg:col-span-7 */
  }
}

/* ================= HASH TARGET HIGHLIGHT ================= */
.uqa-highlight-target {
    position: relative;
    animation: uqaHighlightPulse 3s ease-in-out;
}

@keyframes uqaHighlightPulse {
    0% {
        background-color: transparent;
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    }
    20% {
        background-color: rgba(59, 130, 246, 0.1);
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    40% {
        background-color: rgba(59, 130, 246, 0.05);
        box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 0 0 rgba(59, 130, 246, 0);
    }
}