/* Wrap existing Qixer public pages inside Repio shell */
.repio-legacy-content {
    padding: 60px 0 80px;
}

.repio-legacy-content:has(.repio-auth-page) {
    padding-top: 0;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.repio-legacy-content > .repio-register-page {
    padding-top: 0;
    margin-top: -1rem;
}

.repio-legacy-content .container,
.repio-legacy-content .container-fluid {
    max-width: 1320px;
}

.repio-primary-menu .menu-item,
.repio-primary-menu li,
.repio-footer-menu .menu-item,
.repio-footer-menu li {
    list-style: none;
}

.repio-primary-menu > li > a,
.repio-footer-menu a {
    color: inherit;
    text-decoration: none;
}

.footer-eight-area .footer-eight-col-2 h3,
.footer-eight-area .footer-eight-col-3 h3,
.footer-eight-area .footer-eight-col-4 h3 {
    font-size: 1.75rem;
}

.footer-eight-area .repio-footer-menu > li > a,
.footer-eight-area .footer-eight-link-list a,
.footer-eight-area .footer-eight-contact-info a {
    font-size: 1.125rem;
    line-height: 1.5;
}

.footer-eight-area .repio-footer-menu > li > a {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.footer-eight-area .footer-eight-contact-info a[href^="tel:"] {
    font-size: 1.375rem;
}

.footer-eight-area .repio-footer-menu > li > a:hover,
.footer-eight-area .repio-footer-menu > li.current-menu-item > a {
    color: var(--main-eight-600, #0162e8);
}

.footer-eight-area .repio-footer-menu .sub-menu {
    display: none;
}

/* Footer links can be clipped/offset on smaller screens due to utility start margins.
   Force a clean stacked layout so "Useful Link" remains visible in mobile view. */
@media (max-width: 767.98px) {
    .footer-eight-area .row.tw-pb-20 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-eight-area .footer-eight-col-2,
    .footer-eight-area .footer-eight-col-3,
    .footer-eight-area .footer-eight-col-4 {
        margin-inline-start: 0 !important;
    }

    .footer-eight-area .footer-eight-col-2 .repio-footer-menu,
    .footer-eight-area .footer-eight-link-list {
        display: flex !important;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding-left: 0;
        margin-bottom: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-eight-area .footer-eight-col-2 .repio-footer-menu > li,
    .footer-eight-area .footer-eight-link-list > li {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .footer-eight-area .repio-footer-menu > li > a,
    .footer-eight-area .footer-eight-link-list a {
        display: inline-flex !important;
        color: #fff !important;
        font-size: 1rem !important;
        line-height: 1.5 !important;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.repio-theme-active .repio-primary-menu .sub-menu,
.repio-theme-active .repio-primary-menu .children {
    list-style: none;
    padding-left: 0;
}

.repio-theme-active .notice_main_section {
    position: relative;
    z-index: 1000;
}

/* Full Repio-native page sections inside the legacy wrapper */
.repio-legacy-content > .service-details-area,
.repio-legacy-content > .service-two-area,
.repio-legacy-content > .product-ip-area,
.repio-legacy-content > .blog-three-area {
    margin-top: -40px;
}

.repio-legacy-content > .product-ip-area {
    padding-top: 0;
    /* Legacy style.css sets body to 14px; restore Repio rem scale in product grids */
    font-size: 16px;
}

.repio-legacy-content .product-ip-area .repio-category-card .service-ten-title,
.repio-legacy-content .service-ip-area .repio-category-card .service-ten-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

.repio-legacy-content .product-ip-area .repio-category-card .service-ten-paragraph,
.repio-legacy-content .product-ip-area .repio-category-card .service-ten-list li,
.repio-legacy-content .service-ip-area .repio-category-card .service-ten-paragraph,
.repio-legacy-content .service-ip-area .repio-category-card .service-ten-list li {
    font-size: 1rem;
}

.repio-legacy-content .product-ip-area .repio-category-card .tw-primary-btn .btn_text > span,
.repio-legacy-content .service-ip-area .repio-category-card .tw-primary-btn .btn_text > span {
    font-size: 1rem;
}

.repio-legacy-content .product-ip-area .repio-category-card__thumb-link,
.repio-legacy-content .service-ip-area .repio-category-card__thumb-link {
    display: block;
    aspect-ratio: 4 / 3;
}

.repio-legacy-content .product-ip-area .repio-category-card__image,
.repio-legacy-content .service-ip-area .repio-category-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Service listing grid — 3 cards per row, compact seller avatars */
.repio-legacy-content .repio-service-list-grid > .all-services {
    margin-top: 1.875rem;
}

.repio-legacy-content .repio-service-card__seller-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.repio-legacy-content .repio-service-card__seller-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.repio-legacy-content .service-ip-area .service-ten-wrapper:not(.repio-category-card) .service-ten-thumb {
    aspect-ratio: 16 / 10;
}

.repio-legacy-content .service-ip-area .service-ten-wrapper:not(.repio-category-card) .service-ten-thumb a,
.repio-legacy-content .service-ip-area .service-ten-wrapper:not(.repio-category-card) .service-ten-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.repio-legacy-content .service-ip-area .service-ten-wrapper:not(.repio-category-card) .service-ten-title {
    font-size: 1.25rem;
    line-height: 1.35;
}

.repio-legacy-content .service-ip-area .service-ten-wrapper:not(.repio-category-card) .service-ten-paragraph {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-body, #64748b);
}

.repio-blog-share .list-item {
    list-style: none;
}

.repio-blog-share .list-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--main-eight-600, #0162e8);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.repio-blog-share .list-item a:hover {
    background: var(--main-eight-700, #0156d4);
    transform: translateY(-1px);
}

.repio-blog-share .repio-blog-share-icon {
    display: block;
    width: 1.125rem;
    height: 1.125rem;
}

.blog-details-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.repio-cms-prose,
.repio-cms-page .dynamic-page-content-wrap {
    color: var(--text-body, #64748b);
    line-height: 1.75;
}

.repio-cms-prose h1,
.repio-cms-prose h2,
.repio-cms-prose h3,
.repio-cms-prose h4,
.repio-cms-page .dynamic-page-content-wrap h1,
.repio-cms-page .dynamic-page-content-wrap h2,
.repio-cms-page .dynamic-page-content-wrap h3 {
    color: var(--text-heading, #0f172a);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.repio-cms-prose img,
.repio-cms-page .dynamic-page-content-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.repio-cms-prose a,
.repio-cms-page .dynamic-page-content-wrap a {
    color: var(--main-eight-600, #0162e8);
}

.repio-page-builder .elementor-section-wrap,
.repio-page-builder .elementor-widget-wrap {
    max-width: 100%;
}

.repio-page-builder .contact-area,
.repio-page-builder .faq-area,
.repio-legacy-content .contact-area,
.repio-legacy-content .faq-area {
    padding-top: 0 !important;
    padding-bottom: 2rem !important;
    background: transparent !important;
}

.repio-page-builder .section-title-two .title,
.repio-legacy-content .contact-area .section-title-two .title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-heading, #0f172a);
}

.repio-page-builder .faq-item,
.repio-legacy-content .faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.repio-page-builder .faq-title,
.repio-legacy-content .faq-title {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-heading, #0f172a);
    cursor: pointer;
}

.repio-page-builder .faq-panel,
.repio-legacy-content .faq-panel {
    padding: 0 1.25rem 1rem;
    color: var(--text-body, #64748b);
}

.repio-page-builder .form-control,
.repio-page-builder input[type="text"],
.repio-page-builder input[type="email"],
.repio-page-builder textarea,
.repio-legacy-content .contact-area .form-control {
    border-radius: 0.375rem;
    border-color: #e2e8f0;
}

.repio-page-builder .btn-default,
.repio-page-builder button[type="submit"],
.repio-legacy-content .contact-area button[type="submit"] {
    background: var(--main-eight-600, #0162e8);
    border-color: var(--main-eight-600, #0162e8);
    color: #fff;
    border-radius: 9999px;
    padding: 0.75rem 1.75rem;
}

.repio-legacy-content .load_more_button_warp a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: var(--main-eight-600, #0162e8);
    color: #fff;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
}

.repio-legacy-content .load_more_button_warp a:hover {
    color: #fff;
    opacity: 0.9;
}

.repio-legacy-content .details-content-tab table {
    width: 100%;
    border-collapse: collapse;
}

.repio-legacy-content .details-content-tab th,
.repio-legacy-content .details-content-tab td {
    border: 1px solid #dee2e6;
    padding: 8px;
}

.repio-legacy-content .details-content-tab ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.repio-legacy-content .repio-service-gallery .slick-dots {
    margin-top: 1rem;
}

/* Legacy Qixer job/service cards — use AIServices logo blue, not style.css orange fallback */
body.repio-theme-active .repio-legacy-content .cmn-btn.btn-bg-1,
body.repio-theme-active .repio-legacy-content .cmn-button.btn-bg-1 {
    background: var(--main-color-one, var(--ais-primary, #487fff));
    color: var(--ais-text-on-primary, #fff);
}

body.repio-theme-active .repio-legacy-content .country_city_location .single_location {
    background-color: var(--main-color-one, var(--ais-primary, #487fff));
    color: #fff;
}

body.repio-theme-active .repio-legacy-content .color-three.country_city_location .single_location {
    background-color: var(--main-color-three, var(--ais-primary-hover, #3d6fe6));
}

/* Job & service listing cards — larger avatars and readable text (legacy style.css defaults are small) */
.repio-legacy-content .category-services-area,
.repio-page-builder .category-services-area {
    font-size: 16px;
}

.repio-legacy-content .category-services-area .single-service .services-contents .common-title,
.repio-legacy-content .category-services-area .single-service .services-contents .common-title a,
.repio-page-builder .category-services-area .single-service .services-contents .common-title,
.repio-page-builder .category-services-area .single-service .services-contents .common-title a {
    font-size: 1.5rem;
    line-height: 1.35;
}

.repio-legacy-content .category-services-area .single-service .services-contents .common-para,
.repio-page-builder .category-services-area .single-service .services-contents .common-para {
    font-size: 1rem;
    line-height: 1.625;
}

.repio-legacy-content .category-services-area .author-tag .tag-list .authors,
.repio-page-builder .category-services-area .author-tag .tag-list .authors {
    gap: 12px;
}

.repio-legacy-content .category-services-area .author-tag .tag-list .authors .thumb,
.repio-page-builder .category-services-area .author-tag .tag-list .authors .thumb {
    height: 44px;
    width: 44px;
    flex-shrink: 0;
}

.repio-legacy-content .category-services-area .author-tag .tag-list .authors .thumb .notification-dot,
.repio-page-builder .category-services-area .author-tag .tag-list .authors .thumb .notification-dot {
    height: 12px;
    width: 12px;
}

.repio-legacy-content .category-services-area .author-tag .tag-list .authors .author-title,
.repio-page-builder .category-services-area .author-tag .tag-list .authors .author-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--heading-color, #111111);
}
