/* =============================================
   Unicode Project Carousel — Frontend Styles
   v2.0 — Premium Edition
   ============================================= */

/* ─── Design tokens ─────────────────────────── */
.upc-carousel-wrapper {
    --upc-accent:        #2563eb;
    --upc-accent-dark:   #1d4ed8;
    --upc-accent-glow:   rgba(37, 99, 235, 0.35);
    --upc-card-radius:   20px;
    --upc-ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
    --upc-ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);

    position: relative;
    width: 100%;
}

/* ─── Section header row ────────────────────── */
.upc-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

/* ─── Filter Tabs ──────────────────────────── */
.upc-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    /* Scrollable on very small viewports */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.upc-filter-tabs::-webkit-scrollbar { display: none; }

.upc-filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    background: transparent;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
    /* Smooth all states */
    transition:
        color 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.18s var(--upc-ease-spring);
}

.upc-filter-btn::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    opacity: 0;
    background: var(--upc-accent);
    transition: opacity 0.22s ease;
    z-index: -1;
}

.upc-filter-btn:hover {
    color: var(--upc-accent);
    border-color: var(--upc-accent);
    transform: translateY(-1px);
}

.upc-filter-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--upc-accent-glow);
}

.upc-filter-btn.active {
    color: #fff;
    background: var(--upc-accent);
    border-color: var(--upc-accent);
    box-shadow: 0 4px 18px var(--upc-accent-glow);
    transform: translateY(-1px);
}

/* ─── Slide count indicator ─────────────────── */
.upc-slide-counter {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.upc-slide-counter strong {
    color: #1e293b;
}

/* ─── Swiper outer ──────────────────────────── */
.upc-swiper-outer {
    position: relative;
    /* Extra bottom room for pagination */
    padding-bottom: 56px;
}

.upc-swiper {
    overflow: visible;
}

/* ─── Slide ─────────────────────────────────── */
.upc-slide {
    height: auto;
    /* Subtle scale-in for slides entering from sides */
    transition: opacity 0.4s ease;
}

/* ─────────────────────────────────────────────
   CARD  (the <a> tag IS the card)
   ───────────────────────────────────────────── */
.upc-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 480px;
    border-radius: var(--upc-card-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background: #0f172a;
    /* Layered shadow system */
    box-shadow:
        0  2px  4px  rgba(0,0,0,0.06),
        0  8px  24px rgba(0,0,0,0.10),
        0  0   0  1px rgba(255,255,255,0.04) inset;
    transition:
        transform    0.45s var(--upc-ease-out),
        box-shadow   0.45s var(--upc-ease-out);
    will-change: transform;
}

.upc-project-card:hover {
    transform: translateY(-8px) scale(1.012);
    box-shadow:
        0  4px  8px  rgba(0,0,0,0.08),
        0 24px  56px rgba(0,0,0,0.22),
        0 48px  80px rgba(0,0,0,0.12),
        0  0   0  1px rgba(255,255,255,0.08) inset;
}

.upc-project-card:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px var(--upc-accent);
}

/* ─── Thumbnail ─────────────────────────────── */
.upc-project-card .upc-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s var(--upc-ease-out), filter 0.5s ease;
    transform-origin: center center;
    filter: brightness(0.92) saturate(1.05);
}

.upc-project-card:hover .upc-thumb {
    transform: scale(1.08);
    filter: brightness(0.82) saturate(1.15);
}

/* No-thumbnail placeholder */
.upc-no-thumb {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(37,99,235,0.3) 0%, transparent 60%),
        linear-gradient(145deg, #0f172a 0%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upc-no-thumb-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.25);
}

/* ─── Overlay system ────────────────────────── */
.upc-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Two-layer gradient: color tint + dark vignette */
    background:
        linear-gradient(
            160deg,
            transparent 30%,
            rgba(15,23,42, 0.55) 70%,
            rgba(15,23,42, 0.92) 100%
        );
    transition: opacity 0.45s ease;
}

.upc-project-card:hover .upc-card-overlay {
    opacity: 0.95;
}

/* Shimmer line at top-left — accent colour leak */
.upc-card-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 2px;
    z-index: 4;
    background: linear-gradient(90deg, var(--upc-accent) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--upc-ease-out) 0.05s;
}

.upc-project-card:hover .upc-card-shimmer {
    transform: scaleX(1);
}

/* ─── Content block ─────────────────────────── */
.upc-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 28px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* Content rises on hover */
    transform: translateY(0);
    transition: transform 0.45s var(--upc-ease-out);
}

.upc-project-card:hover .upc-card-content {
    transform: translateY(-4px);
}

/* ─── Category badges ───────────────────────── */
.upc-overlay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.upc-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: rgba(255,255,255,0.9);
    background: rgba(37,99,235,0.35);
    border: 1px solid rgba(37,99,235,0.5);
    border-radius: 6px;
    line-height: 1.4;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ─── Project type line ─────────────────────── */
.upc-project-type {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #60a5fa;
    line-height: 1;
    opacity: 0.9;
}

/* ─── Title ─────────────────────────────────── */
.upc-project-title {
    margin: 0;
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 800;
    line-height: 1.2;
    color: #f8fafc;
    letter-spacing: -0.01em;
}

/* ─── Client name ───────────────────────────── */
.upc-client-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.3;
}

.upc-client-name span {
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.8px;
}

/* ─── Excerpt ───────────────────────────────── */
.upc-project-excerpt {
    font-size: 13px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Hidden by default, reveal on hover */
    max-height: 0;
    opacity: 0;
    transition:
        max-height 0.45s var(--upc-ease-out),
        opacity 0.35s ease 0.08s;
}

.upc-project-card:hover .upc-project-excerpt {
    max-height: 60px;
    opacity: 1;
}

/* ─────────────────────────────────────────────
   CTA ARROW  — top-right corner of card
   ───────────────────────────────────────────── */
.upc-card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--upc-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Start slightly outside viewport, slide in on hover */
    transform: translateX(56px);
    opacity: 0;
    transition:
        transform 0.4s var(--upc-ease-spring),
        opacity   0.3s ease,
        background 0.2s ease;
    box-shadow: 0 4px 16px var(--upc-accent-glow);
}

.upc-project-card:hover .upc-card-arrow {
    transform: translateX(0);
    opacity: 1;
}

.upc-project-card:hover .upc-card-arrow:hover {
    background: var(--upc-accent-dark);
    transform: translateX(0) rotate(-45deg) scale(1.08);
}

.upc-card-arrow svg {
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   NAVIGATION ARROWS
   ───────────────────────────────────────────── */
.upc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 28px));
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background   0.22s ease,
        color        0.22s ease,
        border-color 0.22s ease,
        transform    0.3s  var(--upc-ease-spring),
        box-shadow   0.22s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    outline: none;
}

.upc-nav-btn:hover {
    background: var(--upc-accent);
    color: #fff;
    border-color: var(--upc-accent);
    box-shadow: 0 4px 20px var(--upc-accent-glow);
    transform: translateY(calc(-50% - 28px)) scale(1.1);
}

.upc-nav-btn:focus-visible {
    box-shadow:
        0 0 0 3px #fff,
        0 0 0 5px var(--upc-accent);
}

.upc-nav-prev { left:  -24px; }
.upc-nav-next { right: -24px; }

.upc-nav-btn.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   PAGINATION DOTS
   ───────────────────────────────────────────── */
.upc-pagination {
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
}

.upc-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #cbd5e1;
    opacity: 1;
    border-radius: 100px;
    margin: 0 !important;
    transition:
        background 0.25s ease,
        width      0.3s  var(--upc-ease-spring),
        transform  0.25s var(--upc-ease-spring);
    cursor: pointer;
}

.upc-pagination .swiper-pagination-bullet:hover {
    transform: scale(1.3);
    background: #94a3b8;
}

.upc-pagination .swiper-pagination-bullet-active {
    background: var(--upc-accent);
    width: 28px;
    border-radius: 100px;
}

/* Progress bar variant */
.upc-pagination.swiper-pagination-progressbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    display: block;
}

.upc-pagination.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: var(--upc-accent);
    border-radius: 3px;
}

/* Fraction variant */
.upc-pagination.swiper-pagination-fraction {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: transparent;
}

/* ─────────────────────────────────────────────
   EMPTY STATE
   ───────────────────────────────────────────── */
.upc-no-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 24px;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
}

.upc-no-projects::before {
    content: '';
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #f1f5f9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .upc-nav-prev { left: -8px; }
    .upc-nav-next { right: -8px; }
}

@media (max-width: 768px) {
    .upc-nav-btn           { width: 40px; height: 40px; border-radius: 12px; }
    .upc-nav-prev          { left: 0; }
    .upc-nav-next          { right: 0; }
    .upc-project-card      { height: 380px; }
    .upc-card-content      { padding: 20px 20px 22px; }
    .upc-project-title     { font-size: 18px; }
    /* Always show CTA arrow on touch */
    .upc-card-arrow        { transform: translateX(0); opacity: 1; }
    /* Always show excerpt on touch */
    .upc-project-excerpt   { max-height: 60px; opacity: 1; }
}

@media (max-width: 480px) {
    .upc-filter-tabs       { gap: 6px; }
    .upc-filter-btn        { padding: 7px 16px; font-size: 11px; }
    .upc-project-card      { height: 320px; }
    .upc-swiper-outer      { padding-bottom: 48px; }
}

/* =============================================
   Unicode Hero Section (UHS) — Frontend Styles
   ============================================= */

/* --- Hero wrapper --- */
.uhs-hero {
    position: relative;
    width: 100%;
    min-height: 700px;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}



/* Bottom wave divider */
.uhs-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 3;
    display: block;
}

.uhs-wave path {
    fill: #ffffff;
}

/* Swiper stretches to fill hero height */
.uhs-swiper {
    flex: 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.uhs-swiper .swiper-wrapper {
    flex: 1;
}

.uhs-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
}

/* Fade effect — override Swiper's translate so slides never shift left */
.uhs-swiper.swiper-fade .swiper-wrapper {
    transform: none !important;
}

.uhs-swiper.swiper-fade .swiper-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    pointer-events: none;
    opacity: 0 !important;
    transition: opacity 0.8s ease !important;
}

.uhs-swiper.swiper-fade .swiper-slide-active {
    position: relative !important;
    pointer-events: auto;
    opacity: 1 !important;
    z-index: 2;
}

.uhs-slide {
    width: 100%;
}

/* --- Inner layout --- */
.uhs-slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex: 1;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 100px;
    box-sizing: border-box;
    width: 100%;
    overflow: visible;
}

.uhs-layout-right  { flex-direction: row; }
.uhs-layout-left   { flex-direction: row-reverse; }
.uhs-layout-center { flex-direction: column; justify-content: center; align-items: center; text-align: center; }

/* --- Content Column --- */
.uhs-content-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --- Badge --- */
.uhs-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: rgba(37, 99, 235, 0.08);
    color: #1a3a8c;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    width: fit-content;
}

.uhs-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #2563eb;
    flex-shrink: 0;
}

/* --- Heading --- */
.uhs-heading {
    margin: 0;
    font-size: clamp(44px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    word-break: break-word;
    overflow-wrap: break-word;
}

.uhs-heading-line1 { color: #0f172a; }
.uhs-heading-line2 { color: #2563eb; }

/* --- Sub-text --- */
.uhs-subtext {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    max-width: 500px;
}

.uhs-layout-center .uhs-subtext {
    max-width: 600px;
    margin: 0 auto;
}

/* --- Button row --- */
.uhs-btn-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.uhs-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
    white-space: nowrap;
}

.uhs-btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
}

.uhs-btn-primary svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.uhs-btn-primary:hover svg {
    transform: translateX(4px);
}

/* Secondary button — outlined style to match design */
.uhs-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    background: #ffffff;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.uhs-btn-secondary:hover {
    color: #2563eb;
    border-color: #2563eb;
}

.uhs-btn-play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #1e293b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.uhs-btn-secondary:hover .uhs-btn-play {
    transform: scale(1.08);
    background-color: #2563eb;
}

/* --- Stats row --- */
.uhs-stats-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    padding-top: 4px;
}

.uhs-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
}

.uhs-stat-item:first-child { padding-left: 0; }

.uhs-stat-item + .uhs-stat-item {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.uhs-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbeafe;
}

.uhs-stat-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.uhs-stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.uhs-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

/* --- Image column --- */
.uhs-image-col {
    flex: 0 0 50%;
    max-width: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.uhs-image-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
}

/* Shape variants */
.uhs-image-frame {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #dbeafe;
}

.uhs-shape-circle .uhs-image-frame {
    border-radius: 50%;
}

.uhs-shape-rounded .uhs-image-frame {
    border-radius: 32px;
    aspect-ratio: 4/3;
}

.uhs-shape-square .uhs-image-frame {
    border-radius: 0;
    aspect-ratio: 1;
}

.uhs-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Background image mode */
.uhs-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    opacity: 0.18;
}

/* --- Floating Growth Badge (top-right of image) --- */
.uhs-float-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: #ffffff;
    padding: 14px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    animation: uhs-float 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes uhs-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.uhs-float-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.uhs-float-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uhs-float-title {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.uhs-float-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.uhs-float-value {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.uhs-float-arrow {
    color: #16a34a;
    font-size: 14px;
    font-weight: 700;
}

.uhs-float-sub {
    font-size: 11px;
    color: #94a3b8;
}

/* --- Social Proof Badge (bottom-left of image) --- */
.uhs-social-proof {
    position: absolute;
    bottom: 20px;
    left: -20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #ffffff;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    animation: uhs-float 3.5s 0.5s ease-in-out infinite;
    z-index: 10;
}

.uhs-avatars {
    display: flex;
    align-items: center;
}

.uhs-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2.5px solid #ffffff;
    margin-right: -12px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.uhs-avatar-placeholder {
    display: inline-block;
}

.uhs-avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -12px;
    border: 2.5px solid #ffffff;
    flex-shrink: 0;
}

.uhs-sp-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uhs-sp-title {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
}

.uhs-sp-sub {
    font-size: 13px;
    color: #64748b;
}

/* --- Navigation Arrows --- */
.uhs-nav-btn {
    position: absolute;
    bottom: 32px;
    z-index: 20;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    outline: none;
}

.uhs-nav-btn:hover {
    background-color: #1d4ed8;
    transform: scale(1.08);
}

.uhs-nav-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}

.uhs-nav-prev {
    right: 72px;
}

.uhs-nav-next {
    right: 12px;
}

/* --- Pagination Dots --- */
.uhs-pagination {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
}

.uhs-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(37, 99, 235, 0.3);
    opacity: 1;
    transition: background 0.25s ease, width 0.25s ease;
    border-radius: 50px;
    display: inline-block;
    margin: 0 3px;
}

.uhs-pagination .swiper-pagination-bullet-active {
    background: #2563eb;
    width: 22px;
    border-radius: 50px;
}

/* =============================================
   RESPONSIVE — Hero Section
   ============================================= */

/* ── 1200px: tighten padding, pull floating badge in ── */
@media (max-width: 1200px) {
    .uhs-slide-inner {
        padding: 60px 48px;
        gap: 48px;
    }
    .uhs-float-badge {
        right: -10px;
    }
}

/* ── 1024px: reduce image column, start shrinking gaps ── */
@media (max-width: 1024px) {
    .uhs-slide-inner {
        gap: 36px;
        padding: 48px 40px;
    }
    .uhs-image-col {
        flex: 0 0 44%;
    }
    .uhs-float-badge {
        right: 0;
        min-width: 170px;
        padding: 12px 16px;
    }
    .uhs-float-value {
        font-size: 20px;
    }
    .uhs-social-proof {
        left: 0;
        min-width: 170px;
        padding: 12px 16px;
    }
    .uhs-stat-item {
        padding: 0 20px;
    }
}

/* ── 768px: stack layout, centre everything ── */
@media (max-width: 768px) {
    .uhs-hero {
        min-height: auto;
    }

    .uhs-slide-inner {
        flex-direction: column !important;
        padding: 36px 20px 100px;
        gap: 28px;
        align-items: center;
        min-height: auto;
    }

    /* Centre text for side-by-side layouts when stacked */
    .uhs-layout-right,
    .uhs-layout-left {
        text-align: center;
    }

    .uhs-content-col {
        width: 100%;
        align-items: center;
        gap: 20px;
    }

    .uhs-badge {
        margin: 0 auto;
    }

    .uhs-heading {
        font-size: clamp(32px, 8vw, 52px);
        text-align: center;
    }

    .uhs-subtext {
        max-width: 100%;
        text-align: center;
        font-size: 15px;
    }

    .uhs-btn-row {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    /* Stats: 2-column grid on tablet */
    .uhs-stats-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        padding-top: 0;
    }

    .uhs-stat-item {
        padding: 12px 16px;
        border-left: none !important;
        border-radius: 12px;
        background: rgba(37, 99, 235, 0.04);
        border: 1px solid rgba(37, 99, 235, 0.1);
        justify-content: flex-start;
    }

    /* Image column: full width, show first */
    .uhs-image-col {
        flex: none;
        width: 100%;
        max-width: 100%;
        order: -1;
    }

    .uhs-image-wrap {
        max-width: 360px;
        margin: 0 auto;
    }

    /* Floating badges: keep visible but anchored inside image wrap */
    .uhs-float-badge {
        right: -8px;
        top: 8px;
        min-width: 160px;
        transform: scale(0.88);
        transform-origin: top right;
        animation: none;
    }

    .uhs-social-proof {
        left: -8px;
        bottom: 8px;
        min-width: 160px;
        transform: scale(0.88);
        transform-origin: bottom left;
        animation: none;
    }

    /* Nav arrows: stay bottom-right */
    .uhs-nav-btn {
        width: 44px;
        height: 44px;
    }
    .uhs-nav-prev { right: 64px; }
    .uhs-nav-next { right: 8px; }
}

/* ── 480px: compact mobile ── */
@media (max-width: 480px) {
    .uhs-slide-inner {
        padding: 24px 16px 88px;
        gap: 20px;
    }

    .uhs-heading {
        font-size: clamp(26px, 8vw, 38px);
    }

    .uhs-subtext {
        font-size: 14px;
    }

    .uhs-btn-primary,
    .uhs-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Stats: single column on small phones */
    .uhs-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .uhs-stat-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .uhs-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .uhs-stat-number {
        font-size: 18px;
    }

    .uhs-stat-label {
        font-size: 11px;
        white-space: normal;
    }

    .uhs-image-wrap {
        max-width: 260px;
    }

    /* Hide floating badges on very small screens to avoid overlap */
    .uhs-float-badge {
        display: none;
    }

    .uhs-social-proof {
        left: 0;
        transform: scale(0.8);
        transform-origin: bottom left;
        min-width: auto;
        padding: 10px 14px;
    }

    .uhs-nav-btn {
        width: 40px;
        height: 40px;
    }
    .uhs-nav-prev { right: 56px; }
    .uhs-nav-next { right: 8px; }
}

/* ── 360px: very small phones ── */
@media (max-width: 360px) {
    .uhs-heading {
        font-size: clamp(24px, 7.5vw, 32px);
    }

    .uhs-stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .uhs-social-proof {
        display: none;
    }
}

/* =============================================
   UPC Grid Mode — Styles
   ============================================= */

/* ─── Grid wrapper ──────────────────────────── */
.upc-grid-wrapper {
    position: relative;
    width: 100%;
}

/* ─── Grid container ────────────────────────── */
.upc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* Equal height modifier */
.upc-grid--equal-height .upc-grid-item {
    display: flex;
}

.upc-grid--equal-height .upc-project-card.upc-grid-card {
    flex: 1;
    width: 100%;
}

/* Masonry modifier (CSS columns fallback) */
.upc-grid--masonry {
    display: block;
    column-fill: balance;
}

.upc-grid--masonry .upc-grid-item {
    break-inside: avoid;
    margin-bottom: 24px;
    display: block;
}

.upc-grid--masonry .upc-project-card.upc-grid-card {
    width: 100%;
    height: auto;
    min-height: 280px;
    position: relative;
}

/* ─── Grid item ─────────────────────────────── */
.upc-grid-item {
    position: relative;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Hidden items (load more) */
.upc-grid-item--hidden {
    display: none;
}

/* ─── Grid card overrides ───────────────────── */
.upc-project-card.upc-grid-card {
    height: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ─── Hover effects per data attribute ──────── */

/* Lift (default) */
[data-hover-effect="lift"] .upc-project-card.upc-grid-card:hover {
    transform: translateY(-8px) scale(1.012);
}

/* Zoom */
[data-hover-effect="zoom"] .upc-project-card.upc-grid-card {
    transition: transform 0.5s var(--upc-ease-out), box-shadow 0.5s var(--upc-ease-out);
}
[data-hover-effect="zoom"] .upc-project-card.upc-grid-card:hover {
    transform: scale(1.04);
}

/* Glow */
[data-hover-effect="glow"] .upc-project-card.upc-grid-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0  4px  8px  rgba(0,0,0,0.1),
        0 16px  48px rgba(79, 70, 229, 0.4),
        0 32px  64px rgba(79, 70, 229, 0.2),
        0  0   0  1px rgba(79, 70, 229, 0.3) inset;
}

/* None */
[data-hover-effect="none"] .upc-project-card.upc-grid-card:hover {
    transform: none;
}

/* ─── Grid filter (same as carousel but scoped) */
.upc-grid-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ─── Grid filter animation ──────────────────── */
.upc-grid-item.upc-grid-item--filtered-out {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.upc-grid-item.upc-grid-item--filtered-in {
    opacity: 1;
    transform: scale(1);
}

/* ─── Load More ─────────────────────────────── */
.upc-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.upc-load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
    background: #4f46e5;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition:
        background 0.25s ease,
        transform  0.2s  var(--upc-ease-spring),
        box-shadow 0.25s ease;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.35);
    outline: none;
}

.upc-load-more-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(79, 70, 229, 0.45);
}

.upc-load-more-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.5);
}

.upc-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner (shown while loading) */
.upc-load-more-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: upc-spin 0.7s linear infinite;
}

.upc-load-more-btn.is-loading .upc-load-more-spinner {
    display: block;
}

.upc-load-more-btn.is-loading .upc-load-more-text {
    opacity: 0.7;
}

@keyframes upc-spin {
    to { transform: rotate(360deg); }
}

/* ─── Grid reveal animation on load ─────────── */
@keyframes upc-grid-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.upc-grid-mode .upc-grid-item {
    animation: upc-grid-reveal 0.5s var(--upc-ease-out) both;
}

.upc-grid-mode .upc-grid-item:nth-child(1)  { animation-delay: 0.04s; }
.upc-grid-mode .upc-grid-item:nth-child(2)  { animation-delay: 0.08s; }
.upc-grid-mode .upc-grid-item:nth-child(3)  { animation-delay: 0.12s; }
.upc-grid-mode .upc-grid-item:nth-child(4)  { animation-delay: 0.16s; }
.upc-grid-mode .upc-grid-item:nth-child(5)  { animation-delay: 0.20s; }
.upc-grid-mode .upc-grid-item:nth-child(6)  { animation-delay: 0.24s; }
.upc-grid-mode .upc-grid-item:nth-child(7)  { animation-delay: 0.28s; }
.upc-grid-mode .upc-grid-item:nth-child(8)  { animation-delay: 0.32s; }
.upc-grid-mode .upc-grid-item:nth-child(9)  { animation-delay: 0.36s; }
.upc-grid-mode .upc-grid-item:nth-child(n+10) { animation-delay: 0.40s; }

/* ─── Grid responsive ───────────────────────── */
@media (max-width: 1024px) {
    .upc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .upc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .upc-project-card.upc-grid-card {
        height: 360px;
    }
    /* Always show excerpt and arrow on touch in grid mode */
    .upc-grid-mode .upc-project-excerpt { max-height: 60px; opacity: 1; }
    .upc-grid-mode .upc-card-arrow      { transform: translateX(0); opacity: 1; }
}

@media (max-width: 480px) {
    .upc-project-card.upc-grid-card {
        height: 300px;
    }
}
