/* box hover animation */
.custom-hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-hover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(18, 59, 74, 0.12) !important;
}


/* footer style */
.footer-link a {
    position: relative;
    display: inline-block;
}

.footer-link a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-link a:hover::after {
    width: 100%;
}

.footer-link a:hover {
    color: var(--color-white) !important;
}

/* Mega Menu Dropdown */
#mega-menu-primary .mega-sub-menu {
    background: var(--color-white) !important;
    box-shadow: 0 8px 20px rgba(18, 59, 74, 0.08);
    border: 0 !important;
}

#mega-menu-primary .mega-sub-menu .mega-menu-link {
    background: transparent !important;
    color: var(--color-heading) !important;
}

#mega-menu-primary .mega-sub-menu .mega-menu-link:hover {
    background: rgba(0, 141, 165, 0.06) !important;
    color: var(--color-primary) !important;
}

.custom-cta-action {
    transition: all 0.3s ease;
}

.custom-cta-action:hover {
    background-color: #f1f1f1 !important;
}

.custom-cta-action:hover span,
.custom-cta-action:hover i {
    color: #123b4a !important;
}

/* stick header css */
/* Sticky Header */
ul#mega-menu-primary {
    margin-top: 0 !important;
}

.header {
    transition: all 0.3s ease;
}

.header.sticky-header {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 9999 !important;
}

.header.sticky-header img {
    max-height: 70px;
    width: auto !important;
}

.custom-hover-btn {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
    transition: all 0.3s ease;
}

.custom-hover-btn i {
    transition: transform 0.3s ease;
}

.custom-hover-btn:hover i {
    transform: translateX(4px);
}

.custom-hero {
    height: 630px;
}

.custom-hero img {
    object-position: center;
}

/* Tablet */
@media (max-width: 991px) {
    .custom-hero {
        height: 600px;
    }
}

/* Mobile */
@media (max-width: 575px) {
    .custom-hero {
        height: 550px;
    }

    .custom-hero h1 {
        font-size: 2rem;
    }

    .custom-hero p {
        font-size: 0.9rem;
    }
}


.blog-image {
    aspect-ratio: 16 / 10;
}

.blog-image img {
    object-position: center;
}


/* Prevent very long titles/text from breaking the card */
.blog-image,
.blog-image img,
.blog-card,
article {
    min-width: 0;
}


/* Small screens */
@media (max-width: 575.98px) {
    .blog-image {
        aspect-ratio: 16 / 10;
    }
}

.custom-hero {
    height: 85vh;
    min-height: 550px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/*@media (max-width: 767.98px) {
    .custom-hero {
        min-height: 600px;
		background-position: right;
    }
}*/

@media (max-width: 767.98px) {
    .custom-hero {
        min-height: 600px;
        background-position: -550px !important;
    }
}
/* woocommerce prodcut cateogyr page */
/* =====================================
   PRODUCT CATEGORY LAYOUT
===================================== */

.category-products-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.category-products {
    flex: 0 0 calc(70% - 1.5rem);
    max-width: calc(70% - 1.5rem);
    min-width: 0;
}

.category-sidebar {
    flex: 0 0 calc(30% - 1.5rem);
    max-width: calc(30% - 1.5rem);
}


/* =====================================
   CATEGORY SIDEBAR
===================================== */

.category-sidebar-link {
    color: var(--color-paragraph);
    border-color: rgba(18, 59, 74, 0.12) !important;
    transition: all 0.2s ease;
}

.category-sidebar-link:hover {
    color: var(--color-primary);
}

.category-sidebar-link:last-child {
    border-bottom: 0 !important;
}

.category-sidebar-link[aria-current="page"] {
    color: var(--color-primary);
    font-weight: 600;
}

.category-sidebar-dot {
    width: 7px;
    height: 7px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.category-sidebar-link[aria-current="page"] .category-sidebar-dot {
    background-color: var(--color-primary);
}


/* =====================================
   PAGINATION
===================================== */

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    margin: 0;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.375rem 0.75rem;
    border: 1px solid rgba(18, 59, 74, 0.15);
    border-radius: 0.5rem;
    background-color: var(--color-white);
    color: var(--color-heading);
    text-decoration: none;
}

.page-numbers a:hover,
.page-numbers .current {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-white);
}


/* =====================================
   TABLET / MOBILE
===================================== */

@media (max-width: 991.98px) {

    .category-products-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .category-products,
    .category-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

}
/*blog single page style */
/* Blog single featured image */


/* Blog article content */
.blog-single-content {
    font-size: 17px;
    line-height: 1.8;
}

.blog-single-content img {
    max-width: 100%;
    height: auto;
}


/* Mobile */
@media (max-width: 767.98px) {

    .blog-single-image {
        height: 320px;
    }

    .blog-single-content {
        font-size: 16px;
        line-height: 1.7;
    }

}

/* =========================================
   SINGLE PRODUCT
========================================= */

.woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: 520px;
    object-fit: contain;
    display: block;
}

.woocommerce-product-gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    padding: 15px !important;
    margin: 0 !important;
    list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    width: 80px !important;
    float: none !important;
    margin: 0 !important;
}

.woocommerce-product-gallery .flex-control-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid rgba(18, 59, 74, 0.15);
    border-radius: 8px;
}

.product-single-description p:last-child {
    margin-bottom: 0;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {

    .woocommerce-product-gallery__image img {
        height: 350px;
    }

    .woocommerce-product-gallery .flex-control-thumbs li {
        width: 65px !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs img {
        width: 65px;
        height: 65px;
    }

}

/* logo slider in home pagae */
/* Certifications Marquee */
.certification-marquee {
    overflow: hidden;
    width: 100%;
}

.certification-track {
    width: max-content;
    animation: certification-scroll 20s linear infinite;
}

@keyframes certification-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 767.98px) {
    .certification-track {
        animation-duration: 15s;
    }
}

/* contact form 7 custom style */
/* Contact Form */
.custom-dark-form textarea.form-control {
    display: block;
    width: 100%;
    height: 130px;
    resize: vertical;
}






/* =====================================================
   CUSTOM MEGA MENU
===================================================== */

.custom-main-nav {
    position: relative;
}

.custom-nav-item {
    position: relative;
}

.custom-nav-link {
    display: inline-flex;
    align-items: center;
    border: 0;
    background: transparent;
    color: var(--color-heading);
    text-decoration: none;
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-nav-link:hover,
.custom-nav-link.active {
    color: var(--color-primary);
}

.custom-mega-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.custom-mega-item.is-open .custom-mega-toggle i {
    transform: rotate(180deg);
}

.custom-mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: min(900px, 80vw);
    transform: translateX(-50%);
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(18, 59, 74, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, top 0.25s ease;
}

.custom-mega-item.is-open .custom-mega-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-mega-category {
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid rgba(18, 59, 74, 0.1);
    border-radius: 10px;
    color: var(--color-heading);
    transition: all 0.25s ease;
}

.custom-mega-category:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.custom-mega-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 141, 165, 0.1);
    color: var(--color-primary);
    font-size: 13px;
}

.custom-menu-toggle {
    width: 44px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 4px;
    background-color: var(--color-heading);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.custom-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.25s ease;
}

@media (max-width: 991.98px) {

    .custom-main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px;
        background-color: var(--color-white);
        box-shadow: 0 15px 35px rgba(18, 59, 74, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.25s ease;
    }

    .custom-main-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .custom-nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
    }

    .custom-mega-menu {
        position: static;
        width: 100%;
        transform: none;
        margin-top: 5px;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    .custom-mega-item.is-open .custom-mega-menu {
        display: block;
    }

    .custom-mega-menu .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .custom-mega-menu .py-4,
    .custom-mega-menu .py-lg-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .custom-mega-category {
        min-height: 54px;
    }
}

@media (max-width: 575.98px) {

    .custom-main-nav {
        padding: 16px;
    }

    .custom-mega-menu .row {
        --bs-gutter-y: 0.75rem;
    }

}


article.anim-item.anim-zoom-pop.anim-slide-right.anim-in-view {
    box-shadow: none !important;
}

.footer-menu a {
    color: var(--color-paragraph);
    text-decoration: none;
    font-size: 14px;
    transition: color .25s ease;
}

.footer-menu a:hover {
    color: var(--color-primary);
}
