/* Portfolio carousel: client logos + project copy, no photography required.
   Note: the template sets html { font-size: 10px }, so sizes here are in px. */
.loger-portfolio {
    --pf-navy: #00236B;
    --pf-deep: #0A1B3D;
    --pf-ink: #E6EBF5;
    --pf-muted: rgba(230, 235, 245, .78);
    --pf-sector: #B9CBEE;
    --pf-ease: cubic-bezier(.16, 1, .3, 1);
    /* Coverage-plan diagram: camera with field-of-view edges and range rings */
    --pf-cctv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='white' stroke-width='1.25'%3E%3Ccircle cx='380' cy='24' r='6' fill='white'/%3E%3Cpath d='M380 24 L150 300 M380 24 L300 300'/%3E%3Ccircle cx='380' cy='24' r='130' stroke-dasharray='3 7'/%3E%3Ccircle cx='380' cy='24' r='215' stroke-dasharray='3 7'/%3E%3Ccircle cx='380' cy='24' r='300' stroke-dasharray='3 7'/%3E%3C/svg%3E");
    /* Sensor network diagram: nodes and links */
    --pf-iot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300' fill='none' stroke='white' stroke-width='1.25'%3E%3Cpath d='M250 90 L340 60 L372 150 L270 190 Z M270 190 L330 272 L372 150 M270 190 L176 258 M340 60 L392 18'/%3E%3Ccircle cx='250' cy='90' r='5' fill='%2300236B'/%3E%3Ccircle cx='340' cy='60' r='7' fill='white'/%3E%3Ccircle cx='372' cy='150' r='5' fill='%2300236B'/%3E%3Ccircle cx='270' cy='190' r='9' fill='white'/%3E%3Ccircle cx='330' cy='272' r='5' fill='%2300236B'/%3E%3Ccircle cx='176' cy='258' r='5' fill='%2300236B'/%3E%3Ccircle cx='392' cy='18' r='4' fill='white'/%3E%3C/svg%3E");
}

/* The CTA band below overlaps this section by 80px (margin-top: -80px) */
.loger-portfolio.section-space {
    padding-bottom: 120px;
}

.loger-portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.loger-portfolio-header .rs-section-title {
    margin-bottom: 12px;
}

.loger-portfolio-lead {
    max-width: 60ch;
    margin: 0;
}

.loger-portfolio-nav {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.loger-portfolio-nav .rs-swiper-btn {
    position: static;
    margin: 0;
    width: 50px;
    height: 50px;
}

.loger-portfolio-nav .rs-swiper-btn::after {
    display: none;
}

.loger-portfolio-nav .rs-swiper-btn:focus-visible {
    outline: 2px solid var(--pf-navy);
    outline-offset: 2px;
}

/* Equal-height slides */
.loger-portfolio .swiper-slide {
    height: auto;
}

.pf-tile {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    min-height: 330px;
    padding: 28px;
    border-radius: 14px;
    background: var(--pf-deep);
    color: var(--pf-ink);
}

.pf-tile::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 72%;
    height: 78%;
    z-index: -1;
    background: no-repeat right bottom / contain;
    opacity: .12;
    pointer-events: none;
    transition: opacity .5s var(--pf-ease);
}

.pf-tile--cctv::after {
    background-image: var(--pf-cctv);
}

.pf-tile--iot::after {
    background-image: var(--pf-iot);
}

.pf-tile:hover::after {
    opacity: .28;
}

/* Alternate the two brand navies so neighbouring slides read apart */
.pf-tile.is-alt {
    background: var(--pf-navy);
}

.pf-logo {
    display: block;
    height: 56px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
    /* Normalize every client logo to a white silhouette */
    filter: brightness(0) invert(1);
    margin-bottom: 6px;
}

/* Override the global two-line clamp on *title* headings */
h3.pf-title {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    overflow-wrap: normal;
    margin: 0;
    color: #FFFFFF;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.pf-desc {
    margin: 0;
    color: var(--pf-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pf-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: auto 0 0;
    padding: 8px 0 0;
    list-style: none;
}

.pf-sector {
    padding: 4px 12px;
    border: 1px solid rgba(185, 203, 238, .4);
    border-radius: 999px;
    color: var(--pf-sector);
    font-size: 13px;
}

.pf-tags a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #FFFFFF;
    font-size: 13px;
    text-decoration: none;
    transition: background-color .3s var(--pf-ease);
}

.pf-tags a:hover {
    background: rgba(255, 255, 255, .22);
    color: #FFFFFF;
}

.pf-tags a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .loger-portfolio-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .pf-tile {
        min-height: 0;
        padding: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pf-tile::after,
    .pf-tags a {
        transition: none;
    }
}
