
/* Vertex Digital overrides */
.settings-panel { display: none !important; }

/* Hero section – prevent image clipping */
.new-banner-one {
    overflow: hidden;
}

.new-banner-one > .container .position-relative.py-120 {
    min-height: clamp(720px, 92vh, 980px);
    padding-bottom: 60px;
}

.vertex-hero__figure {
    margin-bottom: 0 !important;
    align-items: flex-end;
    max-height: 100%;
}

/* Realistic section photos — match template dimensions */
img[src*="vertex-real/"] {
    object-fit: cover;
}

/* Services accordion — template was 432×160 */
.common-accordion .accordion-body .flex-shrink-0 > .image-double-animation,
.common-accordion .accordion-body .flex-shrink-0 > .clip-animation {
    width: 432px;
    max-width: 100%;
    height: 160px;
}

.common-accordion .accordion-body .flex-shrink-0 img[src*="vertex-real/service-"] {
    width: 432px;
    max-width: 100%;
    height: 160px;
}

@media (max-width: 575px) {
    .common-accordion .accordion-body .flex-shrink-0 > .image-double-animation,
    .common-accordion .accordion-body .flex-shrink-0 > .clip-animation,
    .common-accordion .accordion-body .flex-shrink-0 img[src*="vertex-real/service-"] {
        width: 100%;
        height: auto;
        aspect-ratio: 432 / 160;
    }
}

.new-banner-one .vertex-hero__figure img {
    max-height: min(860px, calc(100vh - 120px));
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: bottom right;
}

/* Hero content */
.vertex-hero__title {
    line-height: 1.15;
}

.vertex-hero__title .typed-text {
    display: inline-block;
    min-height: 1.15em;
}

.vertex-hero__subtitle {
    opacity: 0.92;
    line-height: 1.7;
}

.vertex-hero__stats li {
    opacity: 0.9;
}

@media (max-width: 767px) {
    .vertex-hero__title {
        font-size: clamp(2rem, 8vw, 2.75rem);
    }

    .vertex-hero__eyebrow span:last-child {
        font-size: 0.75rem;
    }
}

/* Project showcase — static cards (replaces broken GSAP layout) */
.vertex-project-card {
    position: relative;
    min-height: 420px;
}

.vertex-project-card--sm {
    min-height: 320px;
}

.vertex-project-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.vertex-project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.25) 0%, rgba(10, 10, 20, 0.85) 100%);
    z-index: 1;
}

.vertex-project-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: inherit;
    padding: 2.5rem;
}

@media (max-width: 767px) {
    .vertex-project-card {
        min-height: 280px;
    }

    .vertex-project-card--sm {
        min-height: 240px;
    }
}

/* Index-new-2 services accordion */
.new-two-services .preview-img-container img {
    width: 120px;
    height: 48px;
    object-fit: cover;
    border-radius: 999px;
}

.new-two-services .main-service-img {
    width: 100%;
    max-width: 420px;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.new-two-services .accordion-body {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .new-two-services .main-service-img {
        max-width: 100%;
        height: 220px;
    }
}

/* Stats counter — central team photo layout */
.vertex-stats-counter {
    position: relative;
    z-index: 2;
}

.vertex-stats-counter .vertex-stats-photo {
    max-width: min(520px, 90vw);
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Testimonials carousel — prevent edge clipping */
.new-three-testimonials .left-right-overlay {
    overflow: visible;
}

/* Pre-footer impact band */
.vertex-impact-band__stats.new-counter-one {
    padding-top: 0;
}

.vertex-impact-band__stats .tw-text-100-px {
    font-size: clamp(3.5rem, 8vw, 6.25rem);
}

.vertex-impact-band__tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: border-color 0.3s, background 0.3s;
}

.vertex-impact-band__tag:hover {
    border-color: var(--brand-secondary, #ff6b2c);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 575px) {
    .vertex-impact-band__stats .stroke-black {
        font-size: 0.65rem;
        max-width: 90%;
        white-space: normal;
        line-height: 1.2;
    }
}

/* ============================================================
   Dynamic portfolio cards (rendered from the admin dashboard)
   ============================================================ */
.vx-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.vx-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}
.vx-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.vx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.vx-card:hover .vx-card-media img {
    transform: scale(1.06);
}
.vx-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.vx-card-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--main-600, #6a47ed);
}
.vx-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}
.vx-card-title a:hover { color: var(--main-600, #6a47ed); }
.vx-card-desc {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.vx-card-tech {
    margin-top: auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 999px;
    align-self: flex-start;
}
