
/* تنسيق الوحدة العامة (مطابق لـ Why EcoWipePro، مضغوط) */
.industry-solutions {
    max-width: 1280px;
    margin: 40px auto;
    background-color: #f9fafb;
    border-radius: 24px;
    padding: 32px 24px;
    box-sizing: border-box;
}
.section-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #222222;
    text-align: center;
    margin-bottom: 12px;
}
.section-intro {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #555555;
    text-align: center;
    max-width: 950px;
    margin: 0 auto 28px;
}
.carousel-wrapper {
    position: relative;
    direction: ltr;                /* ★ إصلاح الكاروسيل للعمل في الصفحات العربية */
}
.carousel-container {
    overflow: hidden;
    width: 100%;
}
.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
    will-change: transform;
}
.industry-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}
.card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-content {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    direction: rtl;               /* ★ المحتوى العربي يبقى من اليمين لليسار */
    text-align: right;
}
.card-content h3 {
    font-weight: 700;
    font-size: 18px;
    color: #0047AB;
    margin-bottom: 8px;
}
.card-content p {
    font-size: 13px;
    line-height: 1.45;
    color: #555555;
    margin-bottom: 10px;
}
.product-links {
    font-size: 12px;
    line-height: 1.45;
    color: #555555;
    margin-bottom: 14px;
}
.product-links strong {
    font-weight: 600;
    color: #1e2a3a;
}
.product-links a {
    color: #0047AB;
    text-decoration: none;
    font-weight: 500;
}
.product-links a:hover {
    text-decoration: underline;
}
.app-link {
    display: inline-block;
    background: transparent;
    border: 2px solid #0047AB;
    border-radius: 40px;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 12px;
    color: #0047AB;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    align-self: flex-end;         /* ★ يظهر الزر على الجانب الأيمن من البطاقة */
    margin-top: auto;
}
.app-link:hover {
    background: #0047AB;
    color: #ffffff;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: 600;
    color: #0047AB;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s;
    z-index: 10;
}
.carousel-btn:hover {
    background: #f8fafc;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.prev-btn { left: -20px; }
.next-btn { right: -20px; }
@media (max-width: 900px) {
    .industry-solutions { padding: 28px 20px; }
    .industry-card { flex: 0 0 calc(50% - 10px); }
    .carousel-btn { width: 36px; height: 36px; font-size: 22px; }
    .prev-btn { left: -12px; }
    .next-btn { right: -12px; }
}
@media (max-width: 640px) {
    .industry-solutions { padding: 24px 16px; }
    .industry-card { flex: 0 0 100%; }
    .carousel-btn { width: 32px; height: 32px; font-size: 20px; }
    .prev-btn { left: -8px; }
    .next-btn { right: -8px; }
    .section-title { font-size: 24px; margin-bottom: 10px; }
    .section-intro { font-size: 13px; margin-bottom: 24px; }
    .card-content { padding: 12px 14px 16px; }
    .card-content h3 { font-size: 17px; }
    .card-content p { font-size: 12px; }
    .product-links { font-size: 11px; }
    .app-link { padding: 4px 12px; font-size: 11px; }
}
