@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&display=swap');
.services-page-wrapper {
    font-family: 'Cairo', sans-serif;
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 3rem 1.5rem;
}


/* Search Bar Area */

.search-filter-container {
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

.search-bar-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    color: #0f172a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 100%;
    height: 100%;
}


/* Services Section Header */

.services-section {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 3.5rem;
}

.header-text {
    max-width: 700px;
    margin: 0 auto;
}

.services-badge {
    display: inline-block;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* Grid Layout */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}


/* Card Design */

.service-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(30, 41, 59, 0.08);
    border-color: #cbd5e1;
}

.card-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-icon-box {
    width: 3rem;
    height: 3rem;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-box svg {
    width: 22px;
    height: 22px;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}


/* Strict 2-Line Description Cutoff */

.card-description {
    color: #64748b;
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 3rem;
    /* Fallback height matching 2 lines */
}


/* Action Button */

.card-action-btn {
    width: 100%;
    background-color: #f8fafc;
    color: #1e3a8a;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.service-card:hover .card-action-btn {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}

.card-action-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.service-card:hover .card-action-btn svg {
    transform: translateX(-4px);
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}