/* Isolated Container */
#svc-namespace .svc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 20px;
}

/* Header Section Overrides */
#svc-namespace .services-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0; /* Start hidden for animation */
}


#svc-namespace .subtitle {
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px !important; /* Overriding Bootstrap margin-bottom */
}

#svc-namespace .services-header h1 {
    font-size: 3rem;
    color: #1a2b56;
    margin-bottom: 20px;
    font-weight: 700;
}

#svc-namespace .description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid System - Force CSS Grid over Bootstrap's Flex */
#svc-namespace .services-grid {
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Card Styling */
#svc-namespace .service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(157, 154, 154, 0.4);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border: none; /* Remove Bootstrap's default card border */
    opacity: 0;
    height: 700px;
}
.services-header.animate {
    animation: fadeUp 2s ease forwards;
}
.r1.animate {
    animation: fadeUp 1.5s ease forwards;
    animation-delay: 0.05s;
    
}
.r2.animate {
    animation: fadeUp 1.5s ease forwards;
    animation-delay: 0.1s;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.service-wrapper
{
    transition: all 0.3s ease; 
    border-radius: 15px;
    padding: 0;
    margin: 0;
    
}
#svc-namespace .service-wrapper:hover {
    transition: all 0.3s ease; 
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#svc-namespace .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

#svc-namespace .card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#svc-namespace .card-content h3 {
    font-size: 1.4rem;
    color: #1a2b56;
    margin-bottom: 10px;
    font-weight: 600;
}

#svc-namespace .tagline {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 20px;
}

/* List Protection */
#svc-namespace .service-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    flex-grow: 1;
}

#svc-namespace .service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
}

#svc-namespace .service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1a2b56;
    font-weight: 900;
}

/* Custom Button - Totally independent of Bootstrap .btn */
#svc-namespace .svc-btn {
    display: inline-block;
    background-color: #1a2b56;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    /* border: 2px solid #1a2b56; */
    width: fit-content;
}

#svc-namespace .svc-btn:hover {
    transform: scale(1.06);
    background-color: #1e3b84;
    transition: all 0.3s ease;
}

/* Responsive Logic */
@media (max-width: 1024px) {
    #svc-namespace .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 768px) {
    #svc-namespace .services-grid {
        grid-template-columns: 1fr;
    }
    
    #svc-namespace .services-header h1 {
        font-size: 3rem;
    }
    #svc-namespace .services-header p {
        font-size: 0.9rem;
    }
}