/* AceTech Custom CSS - Orange branding & fixes */

/* --- Orange Brand Color --- */
:root {
    --brand-orange: #FF7300;
    --brand-orange-light: #FF9500;
}

/* Service icons - orange colored */
.accordion-faq_item .accordion-action .accordion-title i.icon,
.features-item>i.icon,
.process-card>i.icon,
.contact-item>i.icon,
.benefits-progress-item .progress-text i.icon,
.accordion-faq_item.style-1 .accordion-action .accordion-title i.icon {
    color: var(--brand-orange) !important;
}

/* Logo image */
.logo-site img,
.footer-logo img {
    object-fit: contain;
}

/* Active nav styling */
.nav-menu-main .menu-item.active>.item-link {
    color: var(--brand-orange) !important;
}

/* Fix invisible gradients - making them much lighter/visible */
.text-gradient-1 {
    background: linear-gradient(132.09deg, #222 11.15%, #555 79.01%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.text-gradient-2 {
    background: linear-gradient(180deg, #333 0%, #666 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.text-gradient-3 {
    background: linear-gradient(95.5deg, #111 1.91%, #444 43.92%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Ensure secondary text is readable on light backgrounds */
.text-secondary {
    color: #666 !important;
}

/* Logo styling */
.logo-site span:first-child {
    color: #FF7300 !important;
}

/* Admin sidebar active state */
.nav-link.active {
    background: rgba(255, 115, 0, 0.1) !important;
    color: var(--brand-orange) !important;
}

/* Testimonial Cards */
.tes-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 36px 32px 28px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tes-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

.tes-review {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.tes-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tes-avatar-wrap img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.tes-name {
    font-weight: 700;
    color: #333;
}

.tes-role {
    font-size: 0.85em;
    color: #888;
}

/* Blog Cards */
.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* --- Blog Swiper / Home Blog Section --- */
.section-blog-preview {
    position: relative;
    overflow: visible;
}

.blog-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.blog-view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-orange);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95em;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.blog-view-all-btn:hover {
    border-bottom-color: var(--brand-orange);
    gap: 12px;
}

.blog-drag-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.blog-drag-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.blog-cat-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid;
    backdrop-filter: blur(8px);
}

.blog-card-img {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-drag-card:hover .blog-card-img img {
    transform: scale(1.1);
}

.blog-card-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blog-card-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    color: #888;
    margin-bottom: 12px;
    font-weight: 500;
}

.blog-dot {
    font-size: 1.2em;
    line-height: 1;
}

.blog-card-title {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #111;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--brand-orange);
}

.blog-card-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 24px;
}

.blog-read-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9em;
    text-decoration: none;
    transition: gap 0.3s;
}

.blog-read-link:hover {
    gap: 12px;
}

.blog-card-accent {
    height: 4px;
    width: 0;
    transition: width 0.4s ease;
}

.blog-drag-card:hover .blog-card-accent {
    width: 100%;
}

.blog-drag-hint {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #999;
    font-size: 0.85em;
    font-weight: 600;
}

.blog-swiper .tf-sw-pagination {
    bottom: -15px !important;
}

.blog-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 0.5;
    transition: all 0.3s;
}

.blog-swiper .swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 4px;
    background: var(--brand-orange) !important;
    opacity: 1;
}

.blog-swiper .nav-next-swiper,
.blog-swiper .nav-prev-swiper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s;
}

.blog-swiper .nav-prev-blog {
    left: -20px;
}

.blog-swiper .nav-next-blog {
    right: -20px;
}

.blog-swiper .nav-next-swiper:after,
.blog-swiper .nav-prev-swiper:after {
    font-family: 'icomoon';
    font-size: 1.8rem;
    color: var(--brand-orange);
    font-weight: 400;
}

.blog-swiper .nav-next-swiper:after {
    content: "\e903";
}

.blog-swiper .nav-prev-swiper:after {
    content: "\e902";
}

.blog-swiper .nav-next-swiper:hover,
.blog-swiper .nav-prev-swiper:hover {
    transform: translateY(-50%) scale(1.2);
}

.section-partner {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.partner-wrap {
    display: flex;
    align-items: center;
    gap: 60px;
}

.partner-wrap p.text {
    flex-shrink: 0;
    font-size: 1.1rem;
    line-height: 1.4;
    color: #333 !important;
    margin-bottom: 0;
}

.infiniteSlide_tech_main {
    flex-grow: 1;
    overflow: hidden;
}

.infiniteSlide_partner {
    display: flex !important;
    align-items: center;
}

.partner-wrap .infiniteslide_wrap::after {
    display: none !important;
}

.partner-logo {
    height: 50px !important;
    width: auto !important;
    max-width: 150px;
    object-fit: contain;
    margin: 0 12px;
    filter: grayscale(100%) contrast(1.2);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .partner-wrap {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
}

/* --- Global UI Fixes --- */
html,
body {
    caret-color: transparent;
}

input,
textarea,
[contenteditable='true'] {
    caret-color: auto;
}

img,
i,
svg {
    user-select: none;
}

/* --- Services Image Corner Fix --- */
.section-services {
    position: relative;
}

.services-image {
    max-width: 416px;
    height: 280px;
    position: absolute;
    bottom: 30px;
    left: 15px;
    z-index: 10;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    background: #000;
}

.services-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
}

.services-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .services-image {
        position: relative;
        bottom: 0;
        left: 0;
        margin: 40px auto 0;
        max-width: 100%;
        height: auto;
    }
}

/* --- Heading Sub Pill Style --- */
.heading-sub-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #FFFFFF;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    color: #FF4B2B !important;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 25px;
    border: 1px solid #f0f0f0;
    text-transform: capitalize;
    transition: all 0.3s ease;
}

.heading-sub-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 75, 43, 0.1);
    border-color: rgba(255, 75, 43, 0.2);
}

.heading-sub-pill .sparkle-icon {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.heading-sub-pill .sparkle-icon span {
    display: block;
    background: #FF4B2B;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkleAnim 2s infinite ease-in-out;
}

.heading-sub-pill .sparkle-icon span:nth-child(1) {
    width: 14px;
    height: 14px;
}

.heading-sub-pill .sparkle-icon span:nth-child(2) {
    width: 8px;
    height: 8px;
    animation-delay: 0.5s;
}

.heading-sub-pill .sparkle-icon span:nth-child(3) {
    width: 6px;
    height: 6px;
    animation-delay: 1s;
}

@keyframes sparkleAnim {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.7); opacity: 0.5; }
}

/* --- Language Support Pills --- */
.langs-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.langs-pills span {
    background: #fff;
    padding: 6px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #FF7300;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.langs-pills span:hover {
    transform: translateY(-2px);
    border-color: #FF7300;
    box-shadow: 0 8px 20px rgba(255,115,0,0.1);
}

.langs-pills span.more {
    background: #f8f8f8;
    color: #666;
}

/* --- Global Responsiveness Fix --- */
html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

#wrapper {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px !important;
    }
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 24px;
}

/* --- AceTech Unique Mobile Navigation Fix (Non-Destructive) --- */
.ace-mobile-nav-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    padding: 12px 0 !important;
    margin-bottom: 0 !important;
}

.ace-mobile-inner-fix {
    margin: 0 15px !important;
    max-width: 100% !important;
    background: #fff !important;
    border: 1px solid #f0f0f0 !important;
}

.ace-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.ace-offcanvas-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.ace-offcanvas-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: #080808;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    padding: 30px;
    visibility: hidden;
    overflow-y: auto;
}

.ace-offcanvas-panel.is-open {
    transform: translateX(0);
    visibility: visible;
}

.ace-canvas-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.ace-close-btn {
    color: #fff;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

.ace-nav-list {
    list-style: none;
    padding: 0;
}

.ace-nav-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 10px;
}

.ace-nav-link {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    transition: color 0.3s;
}

.ace-nav-link:hover {
    color: #FF7300;
}

/* --- Mobile Submenu Unique Styles --- */
.ace-has-submenu {
    cursor: pointer;
}

.ace-submenu-toggle {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: #888;
}

.ace-has-submenu.is-active .ace-submenu-toggle {
    transform: rotate(180deg);
    color: #FF7300;
}

.ace-sub-list {
    list-style: none;
    padding: 15px 0 5px 20px;
    display: none; /* Controlled by JS toggle */
    border-left: 2px solid rgba(255,115,0,0.2);
    margin-top: 10px;
}

.ace-sub-list.is-visible {
    display: block;
}

.ace-sub-link {
    color: #bbb;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.ace-sub-link:hover {
    color: #FF7300;
    padding-left: 5px;
}