.industries-box h3 {
    margin-bottom: 22px;
}

/* ==========================================================================
   Product Detail - Partner Brands & Companies Section
   ========================================================================== */
.detail-companies {
    background: #ffffff;
    position: relative;
}

.detail-companies-subtitle {
    max-width: 780px;
    margin: 0 auto;
    color: #556f62;
    font-size: 0.98rem;
    line-height: 1.65;
    text-align: center;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.company-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #dce9e0;
    border-radius: 20px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    box-shadow: 0 8px 24px rgba(3, 84, 40, 0.05);
    overflow: hidden;
}

.company-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #087638, #82e2a5);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.company-card:hover {
    transform: translateY(-8px);
    border-color: #087638;
    box-shadow: 0 20px 42px rgba(3, 84, 40, 0.13);
}

.company-card:hover::before {
    opacity: 1;
}

.company-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.company-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 145px;
    height: 64px;
    padding: 6px 12px;
    background: #ffffff;
    border-radius: 14px;
    border: 1.5px solid #dce9e0;
    box-shadow: 0 4px 14px rgba(3, 84, 40, 0.05);
    flex-shrink: 0;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.company-logo-wrap img {
    width: 100%;
    height: 100%;
    max-height: 52px;
    object-fit: contain;
}

.company-card:hover .company-logo-wrap {
    transform: scale(1.05);
    border-color: #087638;
    box-shadow: 0 6px 18px rgba(8, 118, 56, 0.14);
}

.company-icon-wrap {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #edf8f1;
    color: #087638;
    font-size: 1.25rem;
    transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
    flex-shrink: 0;
}

.company-card:hover .company-icon-wrap {
    background: #087638;
    color: #ffffff;
    transform: scale(1.06);
}

.company-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    background: #f0f7f3;
    color: #0b4d2d;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid #dce9e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.company-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.company-name {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #163326;
    line-height: 1.28;
    font-family: "IBM Plex Sans", sans-serif;
    text-align: center;
}

.company-desc {
    margin: 0 0 16px;
    font-size: 0.85rem;
    color: #556f62;
    line-height: 1.55;
    text-align: justify !important;
}

.company-card-footer {
    padding-top: 14px;
    border-top: 1px dashed #e2ede6;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: auto;
}

.company-trust {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #087638;
}

.company-trust i {
    font-size: 0.85rem;
    color: #087638;
}

@media (max-width: 1199px) {
    .companies-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }
    .companies-grid .company-card:nth-child(4) {
        grid-column: span 1;
    }
    .companies-grid .company-card:nth-child(5) {
        grid-column: span 2;
    }
}

@media (max-width: 991px) {
    .companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .companies-grid .company-card:last-child {
        grid-column: 1 / -1;
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .companies-grid {
        grid-template-columns: 1fr;
    }
    .companies-grid .company-card:last-child {
        max-width: none;
        margin: 0;
    }
    .company-card {
        padding: 20px 16px 18px;
    }
    .company-name {
        font-size: 1.15rem;
    }
    .company-desc {
        font-size: 0.82rem;
    }
}

