/*
 * Service Cards Fix
 * One Sphere Solutions
 * Improves the display of service cards on all screen sizes
 */

/* Service Cards Container */
.services-cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* Service Cards Row */
.services-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Service Card Item */
.services-card-item {
    flex: 1;
    min-width: 300px; /* Minimum width for cards */
    flex-basis: calc(33.333% - 20px); /* 3 cards per row with gap */
}

/* Service Card */
.services-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 4px solid #d9a442;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.services-card:hover {
    transform: translateY(-5px);
    border-left-width: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.services-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #283848;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.services-card:hover h3 {
    color: #d9a442;
}

.services-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: left !important; /* Force left alignment */
    flex-grow: 1;
}

.services-card h3 i {
    color: #d9a442;
    margin-right: 10px;
    font-size: 18px;
    min-width: 20px;
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .services-card-item {
        flex-basis: calc(50% - 20px); /* 2 cards per row on medium screens */
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .services-card h3 {
        font-size: 18px;
    }

    .services-card p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .services-cards-section {
        padding: 50px 0 !important;
    }

    .services-cards-container {
        gap: 20px;
    }

    .services-cards-row {
        flex-direction: column;
        gap: 20px;
    }

    .services-card-item {
        flex-basis: 100%;
        min-width: 100%;
    }

    .services-card {
        padding: 25px;
        margin-bottom: 0;
        border-radius: 8px;
    }

    .services-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .services-card p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 0;
    }

    /* Fix header row on mobile */
    .services-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .services-header-row h2 {
        margin-bottom: 5px;
        font-size: 28px;
    }

    .services-header-row .btn-call {
        align-self: flex-start;
    }
}

@media (max-width: 576px) {
    .services-cards-section {
        padding: 40px 0 !important;
    }

    .services-cards-container {
        padding: 0 15px;
    }

    .services-header-row h2 {
        font-size: 24px;
        margin-bottom: 20px;
        width: 100%;
        text-align: center;
    }

    .services-card {
        padding: 20px;
    }

    .services-card h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .services-card p {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .services-cards-section {
        padding: 30px 0 !important;
    }

    .services-card-item {
        min-width: 100%;
        margin-bottom: 15px;
    }

    .services-card {
        padding: 15px;
    }

    .services-card h3 {
        font-size: 16px;
        line-height: 1.3;
    }

    .services-card h3 i {
        font-size: 16px;
        margin-right: 8px;
        color: #d9a442;
    }

    .services-card p {
        font-size: 14px;
        line-height: 1.4;
    }

    .btn-call {
        font-size: 14px;
        padding: 8px 15px;
    }
}
