.apcc-grid{
    --apcc-cols:3;
    position:relative;
    display:grid;
    grid-template-columns:repeat(var(--apcc-cols),minmax(0,1fr));
    --apcc-gap:12px;
    column-gap:var(--apcc-gap);
    row-gap:35px;
    padding-bottom:18px;
    --apcc-divider-color:#7FD4D4;
    --apcc-divider-gradient-start:#D9F3F1;
    --apcc-divider-gradient-end:#159D96;
    --apcc-divider-width:1px;
    --apcc-dot-color:#087B70;
    --apcc-dot-size:16px;
}
/* Bottom dashed rule: same fine dash rhythm as the reference, fading softly at both ends. */
.apcc-grid::after{
    content:"";
    position:absolute;
    left:7%;
    right:7%;
    bottom:18px; /* align with the card/dot baseline; grid has 18px bottom padding */
    height:var(--apcc-divider-width);
    background:repeating-linear-gradient(
        to right,
        var(--apcc-divider-color) 0 7px,
        transparent 7px 14px
    );
    /* Long, soft edge fade like the reference UI. */
    -webkit-mask-image:linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.08) 6%,
        rgba(0,0,0,.22) 13%,
        rgba(0,0,0,.48) 22%,
        rgba(0,0,0,.78) 31%,
        #000 40%,
        #000 60%,
        rgba(0,0,0,.78) 69%,
        rgba(0,0,0,.48) 78%,
        rgba(0,0,0,.22) 87%,
        rgba(0,0,0,.08) 94%,
        rgba(0,0,0,0) 100%
    );
    mask-image:linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.08) 6%,
        rgba(0,0,0,.22) 13%,
        rgba(0,0,0,.48) 22%,
        rgba(0,0,0,.78) 31%,
        #000 40%,
        #000 60%,
        rgba(0,0,0,.78) 69%,
        rgba(0,0,0,.48) 78%,
        rgba(0,0,0,.22) 87%,
        rgba(0,0,0,.08) 94%,
        rgba(0,0,0,0) 100%
    );
    opacity:.9;
    pointer-events:none;
}
.apcc-card{position:relative;min-width:0;padding:0 0 22px;}
.apcc-card:not(:last-child)::after{
    content:"";
    position:absolute;
    top:58%;
    right:calc(var(--apcc-gap) / -2);
    bottom:0;
    width:var(--apcc-divider-width);
    /* Keep the dashed rhythm, but force a solid connector behind the semicircle.
       This removes the visual gap when the final repeat happens to be transparent. */
    background:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(100% - (var(--apcc-dot-size) / 2 + 3px)),
            var(--apcc-divider-color) calc(100% - (var(--apcc-dot-size) / 2 + 3px)),
            var(--apcc-divider-color) 100%
        ),
        repeating-linear-gradient(
            to bottom,
            var(--apcc-divider-color) 0 7px,
            transparent 7px 14px
        );
    /* Fade the vertical divider softly toward the top, matching the bottom rule. */
    -webkit-mask-image:linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.08) 10%,
        rgba(0,0,0,.22) 20%,
        rgba(0,0,0,.48) 34%,
        rgba(0,0,0,.78) 48%,
        #000 62%,
        #000 100%
    );
    mask-image:linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,.08) 10%,
        rgba(0,0,0,.22) 20%,
        rgba(0,0,0,.48) 34%,
        rgba(0,0,0,.78) 48%,
        #000 62%,
        #000 100%
    );
    pointer-events:none;
}
/* Reference-style half circle sitting exactly on the bottom dashed line. */
.apcc-dot{
    display:block;
    position:absolute;
    width:var(--apcc-dot-size);
    height:calc(var(--apcc-dot-size) / 2);
    border-radius:999px 999px 0 0;
    right:calc((var(--apcc-gap) / -2) - (var(--apcc-dot-size) / 2) + (var(--apcc-divider-width) / 2));
    bottom:0;
    background:var(--apcc-dot-color);
    z-index:3;
    opacity:1;
}
.apcc-card:last-child .apcc-dot{display:none;}
.apcc-image-wrap{
    position:relative;
    display:block;
    height:240px;
    overflow:hidden;
    border-radius:9px;
    text-decoration:none;
}
.apcc-image-wrap img{
    width:100%;height:100%;object-fit:cover;display:block;
    transition:transform .45s ease;
}
.apcc-card:hover .apcc-image-wrap img{transform:scale(1.035);}
.apcc-badge{
    position:absolute;
    top:8px;left:8px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    min-height:34px;
    padding:7px 10px;
    background:rgba(75,75,70,.45);
    color:#fff;
    border-radius:7px;
    font-size:12px;
    line-height:1.2;
    font-weight:600;
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
}
.apcc-content{text-align:center;padding:22px 25px 0;}
.apcc-subtitle{font-size:11px;line-height:1.4;color:#858B8C;text-transform:uppercase;margin-bottom:10px;}
.apcc-description{font-size:12px;line-height:1.45;color:#858B8C;max-width:310px;margin:0 auto 16px;}
.apcc-button{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:101px;min-height:28px;padding:7px 18px;
    border-radius:4px;background:#FFAA28;color:#fff;
    font-size:11px;line-height:1;text-decoration:none!important;
    transition:all .25s ease;
}
.apcc-button:hover{background:#E99413;color:#fff;transform:translateY(-1px);}
@media(max-width:1024px){
    .apcc-grid{--apcc-cols:2;}
}
@media(max-width:767px){
    .apcc-grid{--apcc-cols:1;row-gap:24px;}
    .apcc-content{padding-left:10px;padding-right:10px;}
}


/* Gradient divider mode (Elementor > Style > Dividers & Bottom Dots).
   The existing soft fade masks are preserved. */
.apcc-grid.apcc-divider-gradient::after{
    background:repeating-linear-gradient(
        to right,
        var(--apcc-divider-gradient-start) 0,
        var(--apcc-divider-gradient-end) 7px,
        transparent 7px 14px
    );
}
.apcc-grid.apcc-divider-gradient .apcc-card:not(:last-child)::after{
    background:
        linear-gradient(
            to bottom,
            transparent 0,
            transparent calc(100% - (var(--apcc-dot-size) / 2 + 3px)),
            var(--apcc-divider-gradient-end) calc(100% - (var(--apcc-dot-size) / 2 + 3px)),
            var(--apcc-divider-gradient-end) 100%
        ),
        repeating-linear-gradient(
            to bottom,
            var(--apcc-divider-gradient-start) 0,
            var(--apcc-divider-gradient-end) 7px,
            transparent 7px 14px
        );
}


/* v1.0.10 - True equal-row button alignment.
   The grid stretches every card in a row to the same height, then the content
   becomes a flex column and the CTA is pushed to the bottom. */
.apcc-equal-buttons-yes .apcc-grid{
    align-items:stretch;
}
.apcc-equal-buttons-yes .apcc-card{
    display:flex;
    flex-direction:column;
    height:100%;
}
.apcc-equal-buttons-yes .apcc-image-wrap{
    flex:0 0 auto;
}
.apcc-equal-buttons-yes .apcc-content{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
    width:100%;
}
.apcc-equal-buttons-yes .apcc-description{
    flex:0 0 auto;
}
.apcc-equal-buttons-yes .apcc-button{
    margin-top:auto;
    align-self:center;
}
.apcc-equal-buttons-yes .apcc-content[style*="text-align: left"] .apcc-button{align-self:flex-start;}
.apcc-equal-buttons-yes .apcc-content[style*="text-align: right"] .apcc-button{align-self:flex-end;}


/* v1.0.13: Put divider lines and dots ONLY BETWEEN adjacent cards in a row.
   The actual Elementor column settings drive these selectors at every breakpoint. */
@media (min-width:1025px){
    .apcc-grid.apcc-cols-desktop-1 .apcc-card::after,
    .apcc-grid.apcc-cols-desktop-1 .apcc-dot,
    .apcc-grid.apcc-cols-desktop-2 .apcc-card:nth-child(2n)::after,
    .apcc-grid.apcc-cols-desktop-2 .apcc-card:nth-child(2n) .apcc-dot,
    .apcc-grid.apcc-cols-desktop-3 .apcc-card:nth-child(3n)::after,
    .apcc-grid.apcc-cols-desktop-3 .apcc-card:nth-child(3n) .apcc-dot,
    .apcc-grid.apcc-cols-desktop-4 .apcc-card:nth-child(4n)::after,
    .apcc-grid.apcc-cols-desktop-4 .apcc-card:nth-child(4n) .apcc-dot{
        display:none;
    }
}
@media (min-width:768px) and (max-width:1024px){
    .apcc-grid.apcc-cols-tablet-1 .apcc-card::after,
    .apcc-grid.apcc-cols-tablet-1 .apcc-dot,
    .apcc-grid.apcc-cols-tablet-2 .apcc-card:nth-child(2n)::after,
    .apcc-grid.apcc-cols-tablet-2 .apcc-card:nth-child(2n) .apcc-dot,
    .apcc-grid.apcc-cols-tablet-3 .apcc-card:nth-child(3n)::after,
    .apcc-grid.apcc-cols-tablet-3 .apcc-card:nth-child(3n) .apcc-dot,
    .apcc-grid.apcc-cols-tablet-4 .apcc-card:nth-child(4n)::after,
    .apcc-grid.apcc-cols-tablet-4 .apcc-card:nth-child(4n) .apcc-dot{
        display:none;
    }
}
@media (max-width:767px){
    .apcc-grid.apcc-cols-mobile-1 .apcc-card::after,
    .apcc-grid.apcc-cols-mobile-1 .apcc-dot,
    .apcc-grid.apcc-cols-mobile-2 .apcc-card:nth-child(2n)::after,
    .apcc-grid.apcc-cols-mobile-2 .apcc-card:nth-child(2n) .apcc-dot,
    .apcc-grid.apcc-cols-mobile-3 .apcc-card:nth-child(3n)::after,
    .apcc-grid.apcc-cols-mobile-3 .apcc-card:nth-child(3n) .apcc-dot,
    .apcc-grid.apcc-cols-mobile-4 .apcc-card:nth-child(4n)::after,
    .apcc-grid.apcc-cols-mobile-4 .apcc-card:nth-child(4n) .apcc-dot{
        display:none;
    }
}

.apcc-grid .apcc-card:last-child .apcc-dot{display:none;}
