/* ========================================
   ALPHA TECH - CUSTOM STYLES & FIXES
   All custom improvements in one file
   ======================================== */

/* ===================================
   0. DESIGN TOKENS
   =================================== */

/* Brand palette is navy (#002b54) + gold (#beb201). The theme shipped a
   mismatched --color-primary-rgb (orange 253,100,66) which leaked into
   submenu-hover tints. Align it with the gold primary so every
   rgba(var(--color-primary-rgb)) accent is on-brand. */
:root {
    --color-primary-rgb: 190, 178, 1;
}

/* ===================================
   1. GLOBAL FIXES
   =================================== */

/* Prevent horizontal scroll on all devices.
   NOTE: use overflow-x: clip (not hidden). `hidden` forces overflow-y to
   `auto`, turning these ancestors into scroll containers, which silently
   breaks `position: sticky` on descendants (e.g. the Solutions stack cards).
   `clip` prevents horizontal scroll WITHOUT creating a scroll container, so
   sticky keeps working. overflow-y stays visible. */
html,
body {
    overflow-x: clip !important;
    overflow-y: visible !important;
    max-width: 100vw !important;
}

.body_wrap {
    overflow-x: clip !important;
    max-width: 100vw !important;
}

section {
    overflow-x: clip !important;
    max-width: 100% !important;
}

* {
    box-sizing: border-box !important;
}

/* ===================================
   2. BANNER/HERO SECTION FIXES
   =================================== */

/* Fix foreground (blue overlay) - start off-screen */
#foreground {
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
}

/* Ensure carousel images load properly */
.carousel-item img {
    display: block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.carousel-item {
    opacity: 1 !important;
    visibility: visible !important;
}

#carousellABM .carousel-item:first-child {
    display: block !important;
}

/* Banner text container */
#box-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.paph-wrapper,
.paph-wrapper1,
.paph-wrapper2 {
    position: absolute;
    max-width: 100%;
    width: 100%;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    padding: 0 50px;
}

#text {
    z-index: 1;
    position: relative;
    padding: 0;
    width: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#text h2 {
    font-weight: 600;
    font-size: 58px;
    line-height: 1.3;
    color: var(--color-white);
    text-transform: uppercase;
    max-width: 1200px;
    margin: 0 auto 1rem;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

#text p {
    color: #fff;
    font-size: 16px;
    margin: 1rem auto;
    max-width: 800px;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    display: block;
}

/* Mobile Banner Responsive */
@media (max-width: 991px) {
    .hero-style-three {
        min-height: 400px !important;
        height: 400px !important;
    }

    .carousel-item {
        height: 400px !important;
    }

    .carousel-item img {
        height: 400px !important;
    }

    /* Theme sets #content-wrapper to 100vh with no mobile override, which
       pushed the vertically-centered banner text below the shorter hero
       image. Match it to the hero height so the text stays centered/visible. */
    #content-wrapper {
        height: 400px !important;
        padding: 20px !important;
    }

    #box-container {
        padding: 20px;
    }

    .paph-wrapper,
    .paph-wrapper1,
    .paph-wrapper2 {
        padding: 0 30px !important;
        max-width: 100% !important;
    }

    #text h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    #text p {
        font-size: 14px !important;
        margin: 10px auto !important;
    }

    .path,
    .small-path {
        display: none !important;
    }

    /* Hide button on mobile banner */
    .paph-wrapper .header-btn,
    .paph-wrapper1 .header-btn,
    .paph-wrapper2 .header-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-style-three {
        min-height: 350px !important;
        height: 350px !important;
    }

    .carousel-item {
        height: 350px !important;
    }

    .carousel-item img {
        height: 350px !important;
    }

    #content-wrapper {
        height: 350px !important;
    }

    .paph-wrapper,
    .paph-wrapper1,
    .paph-wrapper2 {
        padding: 0 20px !important;
    }

    #text h2 {
        font-size: 22px !important;
    }

    #text p {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .hero-style-three {
        min-height: 300px !important;
        height: 300px !important;
    }

    .carousel-item {
        height: 300px !important;
    }

    .carousel-item img {
        height: 300px !important;
    }

    #content-wrapper {
        height: 300px !important;
    }

    .paph-wrapper,
    .paph-wrapper1,
    .paph-wrapper2 {
        padding: 0 15px !important;
    }

    #text h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    #text p {
        font-size: 12px !important;
    }
}

/* ===================================
   3. PRELOADER/LOADER FIXES
   =================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-circle {
    width: 100px;
    height: 100px;
    position: relative;
}

/* Mobile loader fixes */
@media (max-width: 767px) {
    .loader-circle {
        width: 80px !important;
        height: 80px !important;
    }

    /* Keep the logo box filling the circle (main.css sets left/right:0,
       height:100vh) and only scale the background image down so the whole
       logo stays visible and centered instead of being clipped. */
    .preloader .loader-logo {
        background-size: 50px !important;
    }
}

@media (max-width: 575px) {
    .loader-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .preloader .loader-logo {
        background-size: 38px !important;
    }
}

/* ===================================
   4. BUTTON FIXES
   =================================== */

.thm-btn {
    border-radius: 6px !important;
    -webkit-border-radius: 6px !important;
    -moz-border-radius: 6px !important;
    -ms-border-radius: 6px !important;
    -o-border-radius: 6px !important;
}

.thm-btn--border,
.thm-btn--black {
    border-radius: 6px !important;
}

.thm-btn .btn_icon {
    border-radius: 0 6px 6px 0 !important;
}

@media (max-width: 767px) {
    .thm-btn {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}

/* ===================================
   5. FOOTER FIXES
   =================================== */

/* Footer text case */
.footer-widget .xb-item--title {
    text-transform: capitalize !important;
}

.footer-links li a {
    text-transform: none !important;
}

.xb-copyright p {
    text-transform: capitalize !important;
}

/* Footer responsive */
.footer-wrap {
    display: flex;
    align-items: flex-start;
}

.footer-line {
    width: 1px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

@media (max-width: 991px) {
    .footer-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .footer-widget--two {
        width: 100% !important;
        margin-top: 40px !important;
        padding-left: 0 !important;
    }

    .footer-widget--two:first-child {
        margin-top: 20px !important;
    }

    .footer-line {
        display: none !important;
    }

    .footer-widget .xb-item--title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .footer-links li {
        margin-bottom: 12px !important;
    }

    .footer-links li a {
        font-size: 15px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
    }

    .xb-copyright p {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .footer-widget--two {
        margin-top: 25px !important;
    }

    .footer-widget .xb-item--title {
        font-size: 15px !important;
    }

    .footer-links li a {
        font-size: 13px !important;
    }

    .xb-copyright p {
        font-size: 12px !important;
    }
}

/* ===================================
   6. FUNFACT SECTION (Stats)
   =================================== */

.funfact-inner {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.funfact-item {
    position: relative;
    flex: 1;
    text-align: center;
    border: 1px solid #08325921;
    border-radius: 15px;
    padding: 30px 15px;
    background-color: #fff;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.funfact-item:hover {
    transform: translateY(-3px);
    background-color: #fff;
    border-color: var(--color-black);
    box-shadow: #002b5452 0px 17px 25px -5px, #002b541f 0px 8px 10px -5px;
}

.funfact-item .xb-item--number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.funfact-item .xb-item--number .xbo-inside{
    /* letter-spacing: 1px; */
}
.funfact-item .xb-item--number .xbo-formatting-mark,
.funfact-item .xb-item--number .xbo-value,
.xb-item--number .suffix {
    background: linear-gradient(2deg, #002b5482, #002b54);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.funfact-item .xb-item--title {
    /* Reset the theme's absolute positioning (main.css) so the label flows
       below the number inside the card instead of overflowing off-screen. */
    position: static;
    transform: none;
    font-size: 16px;
    line-height: 1.4;
    margin: 10px 0 0;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;

}

.funfact-item .xb-item--title span {
    display: block;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background-color: #08325921;
    border-color: #dfe4ea;
    color: var(--color-black);
    font-size: 14px;
    transition: 0.3s ease;
}

.funfact-item:hover .xb-item--title span {
    background-color: var(--color-black);
    color: var(--color-white)
}

@media (max-width: 991px) {
    .funfact-inner {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .funfact-item {
        width: 100% !important;
        flex: none !important;
        padding: 25px 15px !important;
        text-align: center !important;
    }

    .funfact-item .xb-item--number {
        font-size: 42px !important;
    }

    .funfact-item .xb-item--title {
        font-size: 15px !important;
        margin-top: 10px !important;
        padding: 0 15px !important;
        line-height: 1.5 !important;
    }
}

@media (max-width: 767px) {
    .funfact-item {
        padding: 20px 10px !important;
    }

    .funfact-item .xb-item--number {
        font-size: 36px !important;
    }

    .funfact-item .xb-item--title {
        font-size: 14px !important;
        padding: 0 10px !important;
    }
}

@media (max-width: 575px) {
    .funfact-item {
        padding: 18px 8px !important;
    }

    .funfact-item .xb-item--number {
        font-size: 32px !important;
    }

    .funfact-item .xb-item--title {
        font-size: 13px !important;
        padding: 0 8px !important;
        line-height: 1.4 !important;
    }
}

/* ===================================
   7. SOLUTIONS BRAND IMAGES
   =================================== */

.brand-marquee {
    display: flex;
    align-items: center;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.brand-marquee::-webkit-scrollbar {
    height: 6px;
}

.brand-marquee::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.brand-marquee::-webkit-scrollbar-thumb {
    background: rgba(190, 178, 1, 0.4);
    border-radius: 3px;
}

.brand-single {
    flex-shrink: 0;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid #e2e2e1d1;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(134deg, rgb(255 255 255 / 10%) 0%, rgb(255 255 255) 100%);
}

.brand-single:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brand-single a img {
    width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: 50px;
}

@media (max-width: 991px) {
    .solutions-logos {
        padding: 20px 15px !important;
    }

    .solutions-logos .heading h2 {
        font-size: 20px !important;
    }

    .solutions-logos .heading p {
        font-size: 14px !important;
    }

    .brand-marquee {
        gap: 15px !important;
    }

    .brand-single {
        min-width: 100px;
    }

    .brand-single a img {
        width: 90px !important;
        max-height: 50px !important;
    }
}

@media (max-width: 575px) {
    .solutions-logos .heading h2 {
        font-size: 16px !important;
    }

    .solutions-logos .heading p {
        font-size: 12px !important;
    }

    .brand-single {
        min-width: 70px;
    }

    .brand-single a img {
        width: 65px !important;
        max-height: 40px !important;
    }
}

/* ===================================
   8. FORM IMPROVEMENTS
   =================================== */

.vendor-form {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.vendor-form .sec-title h4 {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary);
}

.vendor-form .widget-form {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e0e6ed;
}

.vendor-form .xb-item--field label {
    font-weight: 600;
    font-size: 14px;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.vendor-form .xb-item--field input,
.vendor-form .xb-item--field textarea,
.vendor-form .xb-item--field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.vendor-form .xb-item--field input:focus,
.vendor-form .xb-item--field textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 178, 1, 0.18);
}

.vendor-form .radio-input .label {
    padding: 14px 28px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vendor-form .radio-input .label:has(input:checked) {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.vendor-form .radio-input .label:has(input:checked) .text {
    color: #ffffff;
    font-weight: 700;
}

.vendor-form .btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vendor-form .btn-primary:hover {
    background: var(--color-black);
    transform: translateY(-2px);
}

.vendor-form button[type="submit"] {
    background: var(--color-primary);
    color: #ffffff;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.vendor-form button[type="submit"]:hover {
    background: var(--color-black);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .vendor-form .widget-form {
        padding: 20px;
    }

    .about .row {
        flex-direction: column-reverse;
    }

    .vendor-form button[type="submit"] {
        width: 100%;
    }

    .gradient-line-section {
        padding: 0 !important;
        ;
    }

    .choose-us .row {
        flex-direction: column;
    }

    .choose-us .sec-title {
        margin-bottom: 5px !important;
    }

    .choose-us .sec-title .sub-title {
        transform: translateY(0) !important;
        margin-bottom: 5px !important;
    }

    .funfact {
        padding-top: 0 !important;
    }

    .content-section .g-10 {
        gap: 15px;
    }

    .blog-item {
        padding: 10px !important;
    }

    .blog-item .xb-item--img {
        border-radius: 15px !important;
    }

    .vendor-img-inner {
        border-radius: 10px !important
    }

    .blog-item .xb-item--img {
        margin-bottom: 20px !important;
    }

    .blog-item .xb-item--holder {
        padding: 0 10px 10px;
    }

    .blog-inner:last-child .blog-item {
        margin-bottom: 0 !important;
    }

    .blog-inner {
        display: flex;
        gap: 15px !important;
    }

    .blog {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .solutions-row .col-lg-12:last-child .solutions-logos {
        margin-bottom: 0 !important;
    }

    .footer-wrap {
        flex-wrap: wrap !important;
        flex-direction: initial !important;
    }

    .footer-widget--two {
        width: 50% !important;
        flex: auto;
    }

    .footer-widget--two:last-child {
        width: 100% !important;
    }

    .footer-style-one .footer-wrap {
        padding-bottom: 40px !important
    }

    .about .solutions-row {
        flex-direction: column !important;
    }

    .cta-wrap {
        background-position: inherit;
        padding: 20px !important;
        border-radius: 20px;
    }

    .map {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .sec-title .sub-title {
        transform: translate(0);
        margin-bottom: 5px;
    }

    .aqirys .product-details img {
        height: auto !important;
        object-fit: contain;
    }

    .aquirys-btns {
        padding-top: 0 !important;
        ;
        padding: 0 0 40px !important;
    }

    .coolpa-hero {
        padding-block: 0 !important;
    }

    .barco .details-btns .view-details svg {
        fill: #fff !important;
    }

    .hitrolink .product-img .details-btns .view-details svg {
        fill: #e60113;
    }

    .services-section .js-stack-cards {
        gap: 0 !important;
    }

    .services-section .blog-inner .blog-item:nth-child(4) {
        margin-bottom: 0 !important;
    }

    .services-section .blog-inner .blog-item:nth-child(4) .xb-item--img {
        min-height: 250px !important
    }
    .hero-section{
        height:50vh;
    }
}

/* ===================================
   9. GENERAL MOBILE RESPONSIVE
   =================================== */

@media (max-width: 991px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    [class*="col-"] {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Disable heavy animations on mobile */
    .fade-up,
    .wow {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Section spacing */
    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* Typography */
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 22px !important;
    }

    p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }
}

@media (max-width: 575px) {
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 20px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    /* Text wrapping */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p {
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }
}

/* ===================================
   10. ABOUT SECTION
   =================================== */

/* Fix About/Why Choose Us section */
.about {
    overflow: hidden;
}

.about .row {
    margin-left: -15px;
    margin-right: -15px;
}

/* The about/why text is stored as multiple <p> tags but the theme renders
   them with margin: 0, so they run together with no gap. Restore paragraph
   spacing (the empty .fade-up wrapper <p> and trailing empty <p> stay flush). */
.xb-about-inner p {
    margin-bottom: 18px;
}

.xb-about-inner p.fade-up,
.xb-about-inner p:last-child {
    margin-bottom: 0;
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

.service-image {
    position: relative;
}

.about-shape-icon {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.about-shape-icon .shape {
    position: absolute;
}

.about-shape-icon .shape--1 {
    top: -50px;
    right: -50px;
    max-width: 150px;
}

.about-shape-icon .shape--1 img {
    width: 100%;
    height: auto;
}

/* Desktop - Normal order */
@media (min-width: 992px) {
    .about .row {
        display: flex;
        align-items: center;
    }

    .about-image {
        max-width: 100%;
        /* overflow must stay visible so the decorative dot shape
           (positioned just outside the image) isn't clipped */
        overflow: visible;
    }

    .about-image img {
        width: 100%;
        object-fit: cover;
    }
}

/* Mobile responsive */
@media (max-width: 991px) {
    .about {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        overflow: hidden !important;
    }

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

    .about .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        /* display: block !important; */
    }

    /* First About Section (Who We Are) - Image first on desktop, content first on mobile */
    .about:first-of-type .row .col-lg-6:first-child {
        order: 2;
    }

    .about:first-of-type .row .col-lg-6:last-child {
        order: 1;
    }

    /* Second About Section (Why Choose Us) - Content first on desktop, content first on mobile */
    .about:nth-of-type(2) .row .col-lg-6 {
        order: initial;
    }

    .about .col-lg-6 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        /* margin-bottom: 30px; */
    }

    .about-image {
        margin-bottom: 30px;
        margin-top: 0;
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .about-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 8px;
    }

    .about-shape-icon {
        display: none !important;
    }

    .sec-title {
        text-align: left;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
    }

    .sec-title .title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .sec-title .sub-title {
        font-size: 14px !important;
        text-transform: capitalize !important;
    }

    .xb-about-inner {
        text-align: left;
        padding-right: 0 !important;
        margin-bottom: 20px;
    }

    .xb-about-inner p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 15px;
    }

    .about-btn {
        text-align: left;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .sec-title .title {
        font-size: 22px !important;
    }

    .xb-about-inner p {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .about {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    /* .sec-title .title {
        font-size: 20px !important;
    } */

    .about-image {
        margin-bottom: 0;
    }
}

/* ===================================
   11. BLOG/PARTNER SECTION
   =================================== */

@media (max-width: 991px) {
    .blog {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .blog-inner {
        flex-direction: column !important;
        gap: 30px;
    }

    .blog-item {
        width: 100% !important;
        margin-bottom: 30px;
    }

    .blog-item .xb-item--img img {
        width: 100%;
        height: auto;
    }
}

/* ===================================
   12. GALLERY/EVENTS SECTION
   =================================== */

@media (max-width: 991px) {
    .gallery-item {
        margin-bottom: 20px;
    }

    .gallery-image img {
        width: 100%;
        height: auto;
    }

    .xb-item--holder h3 {
        font-size: 18px !important;
    }
}

/* ===================================
   13. AWARD SECTION
   =================================== */

@media (max-width: 991px) {
    .award {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    .award .sec-title {
        margin-bottom: 40px !important;
        padding-right: 0 !important;
    }

    .award-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===================================
   14. SOLUTIONS PAGE (stacking cards)
   =================================== */

/* The theme gives each solution card a fixed height: 500px (main.css) and
   forces the design graphic to 400px tall. On mobile the card stacks
   (text above graphic) so the content exceeds 500px and, because the card
   is overflow: visible, the globe/visualizer/SVG spills into the next card.
   Let the card grow with its content and keep the graphics inside it. */
@media (max-width: 991px) {
    .solution-card {
        height: auto !important;
    }

    .solution-card .xb-item--img {
        width: 100% !important;
        height: auto !important;
        padding: 20px 0 !important;
    }

    /* Keep every design graphic within the card width */
    .solution-card .xb-item--img canvas,
    .solution-card .xb-item--img svg,
    #globe-canvas,
    #visualizerCanvas {
        max-width: 100% !important;
    }

    /* sort_order 3 uses an absolutely-positioned 550px SVG inside a fixed
       350x300 box — make it flow and scale to the card instead. */
    .solution-card .section-home {
        width: 100% !important;
        height: auto !important;
    }

    .solution-card .section-home svg {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 767px) {

    /* Stacked layout: drop the desktop left indent and the vertical divider,
       and neutralise the stacking-cards transform/sticky so cards flow. */
    .blog .blog-inner .solution-card {
        position: static !important;
        transform: none !important;
        margin-bottom: 25px !important;
    }

    .solution-card .xb-item--holder {
        width: 100% !important;
        padding-left: 0 !important;
    }

    .solution-card .xb-item--holder::before {
        display: none !important;
    }
}

/* ===================================
   15. PARTNER/VENDOR FORM (radio group)
   =================================== */

/* The theme fixes each radio label to width: 220px in a flex row (main.css),
   so the three Supplier/Customer/Other buttons (~660px) run off the screen on
   mobile. Let them wrap, then stack full-width on phones. */
@media (max-width: 991px) {
    .vendor-form .radio-input {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .vendor-form .radio-input {
        flex-direction: column;
        gap: 12px;
    }

    .vendor-form .radio-input label,
    .vendor-form .radio-input .label {
        width: 100% !important;
    }

    .vendor-form .radio-input label::before {
        width: 100% !important;
    }
}

/* ===================================
   17. CONTACT PAGE
   =================================== */

/* --- Head-office photos: rounded, elevated, gently staggered --- */
.contact-img-item img {
    display: block;
    width: 100%;
    /* border-radius: 16px; */
    /* box-shadow: 0 18px 40px rgba(0, 43, 84, 0.12); */
}

@media (min-width: 992px) {
    .contact-img-item:nth-child(2) {
        margin-top: 60px;
    }
}

/* --- Contact info: plain list -> clean cards with gold icon badges --- */
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.contact-info-list li {
    margin: 0 !important;
}

.contact-info-list li a {
    display: flex !important;
    align-items: center;
    gap: 16px !important;
    padding: 15px 18px;
    background: #f8f8f6;
    border: 1px solid #ededed;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-info-list li a:hover {
    border-color: var(--color-primary);
    box-shadow: #002b5452 0px 17px 25px -5px, #002b541f 0px 8px 10px -5px;
    transform: translateY(-3px);
}

.contact-info-list li a svg {
    flex-shrink: 0;
    box-sizing: content-box;
    width: 30px;
    height: 30px;
    padding: 6px;
    background: rgb(190 178 1);
    border-radius: 50%;
    /* stroke: var(--color-primary); */
}

/* --- "Get directions" link -> outline pill button --- */
.direction-link {
    margin-top: 30px !important;
    padding: 12px 26px;
    width: -moz-fit-content;
    width: fit-content;
    border: 1px solid var(--color-black);
    border-radius: 50px;
    color: var(--color-black) !important;
    transition: all 0.3s ease;
}

.direction-link:hover {
    background: var(--color-black);
    color: #fff !important;
}

/* --- Map: round + lift it into the page --- */
.map {
    padding: 0 15px;
}

.google-map {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 43, 84, 0.12);
}

/* --- Contact form: present it as a clean white card on a tinted section --- */
section.contact:has(.contact-form) {
    background: #f7f8f6;
}

/* Full-width form presented as one clean white card */
.contact-inner {
    background: #fff;
    padding: 34px 34px 30px;
    border-radius: 16px;
    border: 1px solid #ececec;
    box-shadow: 0 16px 40px rgba(0, 43, 84, 0.07);
}

@media (max-width: 991px) {
    .contact-inner {
        padding: 22px 18px;
    }
}

/* Two-column field grid, tight spacing */
section.contact:has(.contact-form) .contact-form .input-field {
    position: relative;
    margin-bottom: 18px;
}

/* Drop the theme's animated underline in favour of an outlined look */
section.contact:has(.contact-form) .contact-form .input-field::before {
    display: none !important;
}

/* Slim outlined fields (name, email, message, service) */
section.contact:has(.contact-form) .contact-form .input-field input:not(#contact_number),
section.contact:has(.contact-form) .contact-form .input-field textarea,
section.contact:has(.contact-form) .contact-form .nice-selt-field .nice-select {
    background: #fff !important;
    border: 1px solid #d9dbd5 !important;
    border-radius: 8px !important;
    height: 44px;
    line-height: 42px;
    font-size: 14px !important;
    color: #1f2430 !important;
    padding: 0 40px 0 15px !important;
    transition: border-color .2s ease, box-shadow .2s ease;
}

section.contact:has(.contact-form) .contact-form .input-field textarea {
    height: auto;
    line-height: 1.55;
    min-height: 92px;
    padding: 12px 40px 12px 15px !important;
}

/* Service dropdown: theme's .nice-select forces height/min-height:55px — pin
   it to 44px so it matches the other fields exactly. */
section.contact:has(.contact-form) .contact-form .nice-selt-field,
section.contact:has(.contact-form) .contact-form .nice-selt-field .nice-select {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 42px !important;
}

/* Hide placeholder text — the floating label replaces it */
section.contact:has(.contact-form) .contact-form .input-field input::placeholder,
section.contact:has(.contact-form) .contact-form .input-field textarea::placeholder {
    color: transparent !important;
}

/* Phone: outline the intl-tel-input wrapper so the flag/dial-code stays aligned */
section.contact:has(.contact-form) .contact-form .input-field .iti {
    background: #fff;
    border: 1px solid #d9dbd5;
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

section.contact:has(.contact-form) .contact-form .input-field .iti input {
    background: transparent !important;
    border: none !important;
    height: 42px;
    font-size: 14px !important;
    padding-right: 40px !important;
}

/* Focus -> brand gold ring */
section.contact:has(.contact-form) .contact-form .input-field input:not(#contact_number):focus,
section.contact:has(.contact-form) .contact-form .input-field textarea:focus,
section.contact:has(.contact-form) .contact-form .nice-selt-field .nice-select.open,
section.contact:has(.contact-form) .contact-form .input-field .iti:focus-within {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(190, 178, 1, .14) !important;
}

/* ---------- Floating (notched outline) labels — always on the border ---------- */
section.contact:has(.contact-form) .contact-form .input-field > label {
    position: absolute;
    left: 13px;
    top: 0;
    transform: translateY(-50%);
    margin: 0;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #6b7075;
    background: #fff;
    pointer-events: none;
    text-transform: capitalize;
    transition: color .16s ease;
    z-index: 2;
}

/* Label turns gold while its field is focused */
section.contact:has(.contact-form) .contact-form .input-field:focus-within > label {
    color: var(--color-primary);
}

/* Right-side icons: small & muted */
section.contact:has(.contact-form) .contact-form .input-field .xb-icon {
    top: 22px;
    opacity: .4;
}

section.contact:has(.contact-form) .contact-form .input-field .xb-icon img {
    max-width: 15px;
    height: auto;
}

section.contact:has(.contact-form) .contact-form .input-textarea .xb-icon {
    top: 18px;
}

/* Center the submit button beneath the full-width grid */
section.contact:has(.contact-form) .xb-content {
    justify-content: center;
}

section.contact:has(.contact-form) .contact-btn {
    display: flex;
    justify-content: center;
}

/* Success state styled to match the form card */
.thank-you-message {
    background: #fff;
    padding: 45px 30px;
    border-radius: 18px;
    border: 1px solid #ececec;
    box-shadow: 0 20px 50px rgba(0, 43, 84, 0.08);
}

.thank-you-message h2 {
    color: var(--color-black);
    margin-bottom: 12px;
}


.coolpo-product-img {
    width: 500px;
    height: 500px;
    margin: auto;
    display: flex;
}

@media screen and (max-width: 767px) {
    .drive-conversation .details-btns {
        gap: 5px;
    }

    .drive-conversation .product-img {
        padding-block: 35px;
    }

    .coolpo-product-img {
        width: 250px;
        height: auto;
    }

    .drive-conversation .product-img .view-details {
        opacity: 1;
        padding: 7px 15px;
        gap: 3px;
        width: 150px;
        font-size: 14px;
    }

    .drive-conversation .product-img .view-details svg {
        right: 8px !important;
        background-color: #fff;
        fill: #26377ae6;

    }

    .mb-110 {
        margin-bottom: 0;
    }

    [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .solutions-logos {
        border-radius: 15px !important;
        flex-direction: column;
        margin-bottom: 15px;
        background: linear-gradient(180deg, #ffffff, #002b5480, #002b54);
        border-top: 2px solid #032d56 !important;
        border-right: 2px solid #2f52743b !important;
    }

    .brand-marquee {
        gap: 10px !important;
        flex-wrap: wrap;
        overflow: hidden;
        justify-content: flex-start;
        padding-bottom: 0 !important;
    }

    .services-section .blog-item {
        padding: 20px !important;
        margin-bottom: 0 !important;
    }

    .services-section .xb-item--img {
        margin-bottom: 0 !important;
    }

    .services-section .blog-inner {
        padding-bottom: 0 !important
    }

    .slider-main .container {
        max-width: 700px !important;
        height: 0 !important;
        padding-block: 150px !important;
    }

    .slider-images>img {
        min-height: 200px !important;
    }

    .slider-main {
        min-height: 0 !important;
    }

    .drive-conversation .details-btns {
        bottom: -13px;
    }

    .blog.drive-conversation {
        padding-bottom: 0 !important;
    }

    .drive-conversation .product-details img {
        height: 200px !important;
    }

    .productFeatureSlide {
        padding: 0 !important;
    }

    .coolpa-hero video {
        height: 350px;
        object-fit: cover;
    }

    .coolpa-hero .user-icons {
        gap: 15px;
        flex-wrap: wrap;
    }

    .aqirys-hero,
    .hitrolink-hero {
        padding: 0 !important;
    }

    .hitrolink {
        padding-top: 0 !important;
    }

    .hitrolink .product-img img {
        height: auto;
    }

    .hitrolink .mt-none-35 {
        margin-top: 0 !important;
    }

    .huawei .product-img img {
        width: 250px !important;
    }

    .huawei-hero {
        padding-block: 0 !important;
    }

    .huawei-hero img {
        height: 350px;
        object-fit: cover;
    }

}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portfolio-item .inner {
    padding: 10px;
    border-radius: 17px;
    backdrop-filter: blur(12px);
    background: linear-gradient(134deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 100%);
    transition: background 0.4s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover .inner {
    background: linear-gradient(134deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.08) 100%);
}

/* Image zoom on hover */
.portfolio-item .xb-item--img {
    overflow: hidden;
    border-radius: 12px;
    margin: 0 0 15px 0;
}

.portfolio-item .xb-item--img img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .xb-item--img img {
    transform: scale(1.06);
}

/* Title link lift */
.portfolio-item .xb-item--holder a {
    transition: color 0.3s ease, letter-spacing 0.3s ease;
    display: inline-block;
}

.portfolio-item:hover .xb-item--holder a {
    color: rgba(255, 255, 255, 0.85) !important;
    letter-spacing: 0.3px;
}

@keyframes gradient-pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.banner-section,
.content-section {
    position: relative;
    background: linear-gradient(125deg,
            #002b54,
            #002b54c4,
            rgb(15, 58, 95),
            rgb(31, 111, 168),
            #beb201);
    background-size: 300% 300%;
    animation: gradient-pan 18s ease infinite;
}

.vendor-img-wrapper {
    position: relative;

}


/* Gold overlay tint above image */
.vendor-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgb(0 43 84 / 0%) 0%, rgb(0 43 84 / 31%) 50%, rgb(0 43 84 / 58%) 100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.vendor-img-wrapper:hover::after {
    opacity: 1;
}


/* Image zoom container */
.vendor-img-inner {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    box-shadow: #002b5452 0px 17px 25px -5px, #002b541f 0px 8px 10px -5px;

}

.vendor-img-inner img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;

}

.vendor-img-wrapper:hover .vendor-img-inner img {
    transform: scale(1.05);
}

.gradient-line {
    height: 2px;
    width: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg,
            #beb201,
            #e6c800,
            #fff176,
            #002b54,
            #0056a8,
            #0056a8,
            #002b54,
            #fff176,
            #e6c800,
            #beb201);
    background-size: 200% auto;
    animation: gradientFlow 4s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}



.about-map-section[data-bg-color="#002b54"] {
    position: relative;
    overflow: hidden;
    background-color: #002b54;
}

.about-map-section[data-bg-color="#002b54"]::before,
.about-map-section[data-bg-color="#002b54"]::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

/* gold circle — top left */
.about-map-section[data-bg-color="#002b54"]::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #beb201aa 0%, #beb20100 70%);
    top: -150px;
    left: -150px;
    animation: floatCircle1 5s ease-in-out infinite;
}

/* white/light blue circle — bottom right */
.about-map-section[data-bg-color="#002b54"]::after {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #0056a8aa 0%, #0056a800 70%);
    bottom: -200px;
    right: -150px;
    animation: floatCircle2 8s ease-in-out infinite;
}

@keyframes floatCircle1 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(60px, 40px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 60px) scale(0.95);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

@keyframes floatCircle2 {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(-50px, -60px) scale(1.08);
    }

    66% {
        transform: translate(40px, -40px) scale(0.95);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* keep content above the circles */
.about-map-section[data-bg-color="#002b54"] .container {
    position: relative;
    z-index: 1;
}

.thm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.thm-btn:hover .btn-icon {
    transform: rotate(45deg);
    /* plus rotates to × on hover */
}

.btn-text {
    text-transform: capitalize;
}

.xb-item--img {
    background: linear-gradient(134deg, rgba(255, 255, 255, 0.1) 0%, rgb(255, 255, 255) 100%);
    border: 2px solid rgba(226, 226, 225, 0.82);
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 8px;
}

.section-home svg {
    background: transparent !important;
}

.section-home #Group_10114 {
    fill: transparent !important;
}

.text-black {
    color: var(--color-black) !important;
}

.grid-wrapper {
    min-height: 100%;
    width: 100%;
    position: relative;
    background-color: #f8fafc;
}

.grid-background {
    position: absolute;
    top: -5px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background-image: linear-gradient(to right, #c1d2ca6e 1px, #e9edeb33 1px), linear-gradient(to bottom, #c1d2ca6e 1px, #c1d2ca29 1px);
    background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%,
            #000 60%,
            transparent 100%);
    mask-image: radial-gradient(ellipse 96% 82% at 50% 0%, #eddedeab 60%, #0000001a 100%);
}

/* ===================================
   CUSTOM SCROLLBAR (GLOBAL)
   =================================== */
/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: #beb201 #f0f0f0;
}

/* For Chrome, Edge, and Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #beb201;
    border-radius: 5px;
    /* border: 2px solid #f0f0f0; */
    /* Adds a bit of padding around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: #beb201;
}
/* ===================================
   18. HONEYPOT (anti-spam)
   Keep this field invisible to real users; bots fill it and get dropped.
   =================================== */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
