/* List reset and card grid */
.services-page-section ul,
.services-page-section ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.5rem;
}

/* Card effect for each item with border */
.services-page-section ul li,
.services-page-section ol li {
    position: relative;
    background: var(--rv-primary-light);
    padding: 1.5rem 1rem 2.5rem 4rem;
    border-radius: 16px;
    border: 2px solid transparent;  /* Border starts transparent */
    box-shadow: 0 8px 12px rgba(0,0,0,0.06);
    font-family: var(--rv-font);
    color: var(--rv-black);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, border 0.4s ease;
    cursor: pointer;
    overflow: hidden;
    perspective: 1000px;
}

/* 3D Hover Tilt */
.services-page-section ul li:hover,
.services-page-section ol li:hover {
    transform: rotateX(5deg) rotateY(-5deg) scale(1.03);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
    background: var(--rv-secondary-light);
    border: 2px solid var(--rv-primary);  /* Border color on hover */
}

/* Bullet icon with brand primary color */
.services-page-section ul li::before,
.services-page-section ol li::before {
    content: '✔';
    position: absolute;
    left: 1.2rem;
    top: 1.5rem;
    width: 30px;
    height: 30px;
    background: var(--rv-primary);
    color: var(--rv-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

/* Hover effect on bullet */
.services-page-section ul li:hover::before,
.services-page-section ol li:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 63, 99, 0.8);
}

/* Background glow */
.services-page-section ul li::after,
.services-page-section ol li::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0,63,99,0.1) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.services-page-section ul li:hover::after,
.services-page-section ol li:hover::after {
    opacity: 1;
}

/* Read More link inside card */
.services-page-section ul li a.read-more,
.services-page-section ol li a.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--rv-primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.services-page-section ul li a.read-more:hover,
.services-page-section ol li a.read-more:hover {
    color: var(--rv-secondary);
}

/* Animate items on load */
.services-page-section ul li,
.services-page-section ol li {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s forwards;
}

.services-page-section ul li:nth-child(1),
.services-page-section ol li:nth-child(1) { animation-delay: 0.1s; }
.services-page-section ul li:nth-child(2),
.services-page-section ol li:nth-child(2) { animation-delay: 0.2s; }
.services-page-section ul li:nth-child(3),
.services-page-section ol li:nth-child(3) { animation-delay: 0.3s; }
.services-page-section ul li:nth-child(4),
.services-page-section ol li:nth-child(4) { animation-delay: 0.4s; }

/* Keyframes */
@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 63, 99, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0, 63, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 63, 99, 0); }
}
