/* ===== CAROUSEL WRAPPER ===== */

.custom-carousel-wrapper {
    position: relative;
    background: var(--clr-secondary);
    padding: 4rem 0;
    overflow: hidden;
}

/* --- Animated BG elements --- */
.ccw-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.ccw-orb {
    position: absolute; border-radius: 50%;
    background: rgba(255, 107, 53, 0.07);
    animation: ccwPulse ease-in-out infinite alternate;
}
@keyframes ccwPulse {
    from { transform: scale(1);    opacity: .5; }
    to   { transform: scale(1.18); opacity: .9; }
}
.ccw-paw {
    position: absolute; color: #fff; opacity: .04; pointer-events: none;
    font-size: 1.8rem;
    animation: ccwSway ease-in-out infinite alternate;
}
@keyframes ccwSway {
    from { transform: rotate(-8deg) scale(1); }
    to   { transform: rotate( 8deg) scale(1.05); }
}
.ccw-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(255, 107, 53, 0.15);
    animation: ccwRing linear infinite;
}
@keyframes ccwRing {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: .6; }
    100% { transform: translateY(-400px) scale(1.08); opacity: 0; }
}

/* --- Heading --- */
.custom-carousel-wrapper h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: #fff;
    position: relative; z-index: 2;
}

/* --- Carousel track --- */
.carousel {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
     scroll-behavior: auto;
    position: relative; z-index: 2;
    mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.carousel::-webkit-scrollbar { display: none; }
.carousel:hover  { cursor: grab; }
.carousel:active { cursor: grabbing; }
.carousel-content {
     display: flex; 
     gap: 1rem; 
     flex-shrink: 0;
      width: max-content;
     }

/* --- Card --- */
.custom-carousel-wrapper .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 200px; height: 240px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: #fff;
    font-size: 1rem; font-weight: 600;
    text-align: center;
    transition: all .35s ease;
    user-select: none;
    position: relative; overflow: hidden;
    padding: 20px 16px;
    flex-shrink: 0;
}
.custom-carousel-wrapper .card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 80%, rgba(255,107,53,0.18), transparent 65%);
    opacity: 0; transition: opacity .35s ease;
}
.custom-carousel-wrapper .card:hover::before { opacity: 1; }
.custom-carousel-wrapper .card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--clr-primary);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.custom-carousel-wrapper .card:hover::after  { transform: scaleX(1); }
.custom-carousel-wrapper .card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 107, 53, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,107,53,0.2);
}

/* --- Icon circle --- */
.custom-carousel-wrapper .icon-wrap {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.25);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
    transition: all .35s ease;
    position: relative; z-index: 1;
}
.custom-carousel-wrapper .card:hover .icon-wrap {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}
.custom-carousel-wrapper .icon-wrap i {
    font-size: 2rem; color: var(--clr-primary);
    transition: color .35s ease;
}
.custom-carousel-wrapper .card:hover .icon-wrap i { color: #fff; }
.custom-carousel-wrapper .card p {
    font-size: .92rem; font-weight: 600;
    color: rgba(255,255,255,0.9);
    position: relative; z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .custom-carousel-wrapper .card { width: 180px; height: 220px; }
    .custom-carousel-wrapper .icon-wrap { width: 70px; height: 70px; }
    .custom-carousel-wrapper .icon-wrap i { font-size: 1.7rem; }
}
@media (max-width: 768px) {
    .custom-carousel-wrapper .card { width: 155px; height: 200px; }
    .custom-carousel-wrapper h1 { font-size: 2rem; margin-bottom: 2rem; }
    .carousel { padding: .5rem .5rem 1rem; }
}
@media (max-width: 480px) {
    .custom-carousel-wrapper .card { width: 130px; height: 175px; }
    .custom-carousel-wrapper .icon-wrap { width: 60px; height: 60px; }
    .custom-carousel-wrapper .icon-wrap i { font-size: 1.5rem; }
    .custom-carousel-wrapper .card p { font-size: .82rem; }
    .custom-carousel-wrapper h1 { font-size: 1.7rem; }
    .custom-carousel-wrapper { padding: 2.5rem 0; }
}