/* ===== Our Clients — hover link fix ===== */
.clients .brands .item .img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.clients .brands .item .img .link {
    max-width: 100%;
    word-break: break-word;
    white-space: normal;
    text-align: center;
    padding: 0 8px;
    box-sizing: border-box;
}

/* ===== About Page — Equal Height Cards ===== */
.about-services .row {
    align-items: stretch;
}

.about-services .col-lg-4 {
    display: flex;
    flex-direction: column;
}

.about-services .item {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ===== Small screen overflow fix (≤390px) ===== */
@media (max-width: 400px) {
    /* Reduce container padding to give more content width */
    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Prevent text from overflowing */
    .about .content p,
    .about .content h3,
    .about .content h6 {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    /* Force service cards to stack at very small screens */
    .services .item-box {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 40px 20px !important;
    }
}