/* ============================================
   SERVICE CARDS - Equal Height Fix
   ============================================ */

/* Services Grid Container - Same as index.html advantages */
.services-grid-custom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
}

/* Equal height for all service cards */
.feature-card-16.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #160f3e 0%, #d4af37 50%, #ffd700 100%) border-box;
    border-radius: 0.5rem;
    transition: all 0.4s ease;
    margin-bottom: 0;
}

.feature-card-16.card:hover {
    border-width: 4px;
    box-shadow: 0 8px 30px rgba(22, 15, 62, 0.15);
    transform: translateY(-2px);
}

.feature-card-16 .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card-16 .card-body .d-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-card-16 .card-body .flex-grow-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Icon container fixed height */
.feature-card-16 .mb-3 {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Title fixed height */
.feature-card-16 h5 {
    min-height: 30px;
    margin-bottom: 1rem;
}

/* Description area - flexible */
.feature-card-16 p.mb-0 {
    flex: 1;
    margin-bottom: 1rem !important;
    min-height: 80px;
}

/* Link stays at bottom */
.feature-card-16 a.tx-primary {
    margin-top: auto;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .services-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .services-grid-custom {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .feature-card-16 .card-body {
        padding: 1.5rem 1rem;
    }

    .feature-card-16 p.mb-0 {
        min-height: 70px;
    }
}

@media (max-width: 767px) {
    .services-grid-custom {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card-16 {
        min-height: 260px;
    }

    .feature-card-16 p.mb-0 {
        min-height: 60px;
    }
}
