/* ==========================================================================
   LOTIUS PROJECTS LOOP ITEM - INDIVIDUAL CARD COMPONENT STYLES
   ========================================================================== */

/* --- Project Card (Main Box Container) --- */
.lotius-project-card {
    background-color: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.6rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    text-decoration: none;
    box-shadow: 0 0.4rem 2.0rem rgba(0, 0, 0, 0.2);
}

.lotius-project-card:hover {
    transform: translateY(-0.8rem);
    box-shadow: 0 2.0rem 4.0rem rgba(0, 0, 0, 0.4), 0 0 3.0rem rgba(83, 205, 255, 0.05);
    border-color: rgba(83, 205, 255, 0.25);
}

/* --- Card Media Section --- */
.project-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #121b2e;
    border-top-left-radius: 1.6rem;
    border-top-right-radius: 1.6rem;
}

.project-card-img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lotius-project-card:hover .project-card-img {
    transform: scale(1.05);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 17, 32, 0.45);
    transition: background-color 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.lotius-project-card:hover .project-card-overlay {
    background: rgba(11, 17, 32, 0.1);
}

/* Floating Client Logo (Top Left) */
.project-card-client-logo {
    position: absolute;
    top: 1.6rem;
    left: 1.6rem;
    width: 4.0rem;
    height: 4.0rem;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.25);
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card-client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.lotius-project-card:hover .project-card-client-logo {
    transform: scale(1.08);
}

/* Floating Badge (Top Right) */
.project-card-floating-badge {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    background-color: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Glowing dot in badge with ping animation */
.badge-dot {
    position: relative;
    width: 0.8rem;
    height: 0.8rem;
    background-color: #007aff;
    border-radius: 50%;
    box-shadow: 0 0 0.8rem #007aff;
    display: inline-block;
}

.badge-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #007aff;
    border-radius: 50%;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* --- Card Body --- */
.project-card-body {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    flex-grow: 1;
}

.project-card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/wp-content/uploads/2026/05/favicon-logo-svg.svg");
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: 100% 100%;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Sector Chips (Absolute Bottom Left on Image) */
.project-card-sectors {
    position: absolute;
    bottom: 0.3rem;
    left: 1.6rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    z-index: 2;
}

.sector-chip {
    background: rgba(11, 17, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #53cdff;
    font-size: 1.0rem;
    font-weight: 700;
    padding: 0.5rem 1.0rem;
    border-radius: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Title (Truncate after 2 lines if too long) */
.project-card-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.project-card-title a:hover {
    color: #53cdff;
}

/* Industry Subtitle */
.project-card-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #94a3b8;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;

}

.meta-icon {
    width: 1.4rem;
    height: 1.4rem;
    color: #53cdff;
    opacity: 0.85;
    flex-shrink: 0;
}

/* Description */
.project-card-desc {
    color: #cbd5e1;
    font-size: 1.5rem;
    line-height: 1.6;
}

.project-card-desc strong,
.project-card-desc b,
.project-card-desc span.highlight {
    color: #53cdff;
    font-weight: 600;
}

/* Testimonial Quote Box */
.project-card-quote {
    margin: 1.0rem 0 0 0;
    padding: 1.6rem 2.0rem;
    background: rgba(83, 205, 255, 0.03);
    border-left: 3px solid #53cdff;
    border-radius: 0.8rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-style: italic;
}

.quote-text {
    color: #94a3b8;
    font-size: 1.4rem;
    line-height: 1.6;
    display: block;
}

/* --- Card Footer & CTA Link --- */
.project-card-footer {
    padding: 1.6rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.project-card-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    transition: color 0.3s ease;
}

.project-card-link:hover {
    color: #53cdff;
}

.arrow-icon {
    width: 1.6rem;
    height: 1.6rem;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.project-card-link:hover .arrow-icon {
    transform: translateX(0.4rem);
}

/* --- Mobile viewport (max-width: 767px) --- */
@media screen and (max-width: 767px) {

    .lotius-project-card {
        border-radius: 0.8rem;
    }


    .project-card-media {
        border-top-left-radius: 0.8rem;
        border-top-right-radius: 0.8rem;
    }

    /* Hide non-essential elements on mobile to fit 2-column grid */
    .project-card-desc,
    .project-card-quote,
    .project-card-footer,
    .project-card-floating-badge {
        display: none !important;
    }

    /* Tighten layout spacing */
    .project-card-body {
        padding: 1.2rem !important;
        gap: 0.6rem !important;
    }

    /* Scale down floating logo */
    .project-card-client-logo {
        top: 0.8rem !important;
        left: 0.8rem !important;
        width: 3.0rem !important;
        height: 3.0rem !important;
        padding: 0.4rem !important;
        border-radius: 0.6rem !important;
    }

    .project-card-sectors {
        bottom: 0.8rem !important;
        left: 0.8rem !important;
        gap: 0.4rem !important;
    }

    .sector-chip {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
        border-radius: 0.3rem !important;
    }

    /* Sizing adjustments for typography */
    .project-card-title {
        font-size: 1.3rem !important;
        line-height: 1.35 !important;
    }

    .project-card-meta {
        font-size: 0.95rem !important;
        gap: 0.4rem !important;
    }

    .meta-icon {
        width: 1.1rem !important;
        height: 1.1rem !important;
    }
}

/* --- Equal Height Alignment for Elementor Loop Grid --- */
.lotius-loop-grid .elementor-loop-container {
    display: grid !important;
}

/* 1. Grid Cell Item Wrapper */
.lotius-loop-grid .e-loop-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* 2. Parent Flex Container (article.e-con) */
.lotius-loop-grid .e-loop-item>article.e-con {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    align-items: stretch !important;
    height: 100% !important;
    width: 100% !important;
}

/* 3. Container Inner Content Div (.e-con-inner) */
.lotius-loop-grid .e-loop-item>article.e-con>.e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    align-items: stretch !important;
    height: 100% !important;
    width: 100% !important;
}

/* 4. Widget Shortcode Wrapper inside Container Inner */
.lotius-loop-grid .e-loop-item .elementor-widget-shortcode {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    align-items: stretch !important;
    height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
}

/* 5. Widget Inner Container & Shortcode Render Wrapper */
.lotius-loop-grid .e-loop-item .elementor-widget-shortcode>.elementor-widget-container,
.lotius-loop-grid .e-loop-item .elementor-widget-shortcode .elementor-shortcode {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    align-items: stretch !important;
    height: 100% !important;
    width: 100% !important;
}

/* 6. Actual Card Wrapper (force stretch) */
.lotius-loop-grid .lotius-project-card {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    height: 100% !important;
}