.fmw-card,
.fmw-form-card,
.fmw-rating-card {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    border-radius: 18px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.fmw-card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fmw-card-image-wrapper {
    position: relative;
}

.fmw-card-image {
    border-radius: 18px;
    overflow: hidden;
    transform: skewX(-3deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.fmw-card-image img {
    width: 100%;
    display: block;
    transform: skewX(3deg);
    transition: transform 0.4s ease;
}

.fmw-card:hover .fmw-card-image img {
    transform: scale(1.05) skewX(3deg);
}

.fmw-card-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #0984e3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0,184,148,0.4);
}

/* حركات الأيقونة */
@keyframes fmw-bounce {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-4px); }
}
@keyframes fmw-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes fmw-rotate {
    0%   { transform: rotate(0); }
    50%  { transform: rotate(10deg); }
    100% { transform: rotate(0); }
}

.fmw-icon-bounce { animation: fmw-bounce 1.4s infinite; }
.fmw-icon-pulse  { animation: fmw-pulse 1.6s infinite; }
.fmw-icon-rotate { animation: fmw-rotate 1.8s infinite; }

.fmw-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fmw-card-title {
    font-size: 1.1rem;
    font-weight: var(--fmw-srv-title-fw, 800);
    margin: 0;
    color: #222f3e;
}

.fmw-card-text {
    margin: 0;
    font-size: 0.95rem;
    color: #576574;
}

.fmw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    box-shadow: 0 10px 25px rgba(0,184,148,0.35);
}

.fmw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,184,148,0.45);
}

/* نموذج الطلب */
.fmw-form-card {
    backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.92);
}

.fmw-form-row {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fmw-form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #222f3e;
}

.fmw-form-row input,
.fmw-form-row select,
.fmw-form-row textarea {
    border-radius: 12px;
    border: 1px solid #dcdde1;
    padding: 8px 11px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fmw-form-row input:focus,
.fmw-form-row select:focus,
.fmw-form-row textarea:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 2px rgba(0,184,148,0.15);
}

.fmw-captcha-row .fmw-captcha-fields {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.fmw-captcha-number {
    padding: 4px 10px;
    border-radius: 999px;
    background: #00b894;
    color: #fff;
}

.fmw-form-message,
.fmw-rating-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* صندوق التقييم */
.fmw-rating-card {
    background: #ffffff;
}

.fmw-rating-list {
    margin-top: 15px;
    border-top: 1px dashed #dcdde1;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fmw-rating-item {
    background: #f9fbff;
    border-radius: 12px;
    padding: 10px 12px;
}

.fmw-rating-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.fmw-rating-name {
    font-weight: 600;
    color: #2d3436;
}

.fmw-rating-stars {
    color: #fdcb6e;
}

.fmw-rating-comment {
    font-size: 0.9rem;
    color: #636e72;
}

/* استجابة الموبايل */
@media (max-width: 768px) {
    .fmw-card-inner {
        flex-direction: column;
    }
}


/* أيقونة داخل الكارت من صورة */
.fmw-card-icon-img {
    max-width: 26px;
    }

/* أيقونات السوشيال ميديا لصفحة المنتج */
.fmw-social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.fmw-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fmw-social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fmw-social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

/* شبكة المنتجات في صفحة المنتجات */
.fmw-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* على الشاشات المتوسطة والصغيرة */
@media (max-width: 1024px) {
    .fmw-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fmw-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* إخفاء المنتجات الزيادة الافتراضي */
.fmw-products-item.fmw-product-hidden {
    display: none;
}

/* زر عرض المزيد */
.fmw-products-loadmore-wrapper {
    margin-top: 24px;
    text-align: center;
}

.fmw-load-more-products {
    margin-top: 4px;
}


/* ==== Custom soft shadow for forms & rating, styled buttons ==== */

.fmw-form-card,
.fmw-rating-card {
    border: none;
    box-shadow: 0 18px 45px rgba(0,0,0,0.06);
}

.fmw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #00b894, #00d2a8);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,184,148,0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.fmw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(0,184,148,0.45);
    opacity: 0.96;
}

.fmw-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0,184,148,0.35);
}




/* ===== تحسين حقول نموذج الطلب والتقييم (بدون إطار أسود، مع ظل ناعم) ===== */
.fmw-form-card .fmw-form-row input[type="text"],
.fmw-form-card .fmw-form-row input[type="email"],
.fmw-form-card .fmw-form-row input[type="number"],
.fmw-form-card .fmw-form-row select,
.fmw-form-card .fmw-form-row textarea,
.fmw-rating-card .fmw-form-row input[type="text"],
.fmw-rating-card .fmw-form-row input[type="email"],
.fmw-rating-card .fmw-form-row select,
.fmw-rating-card .fmw-form-row textarea {
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 6px 20px rgba(15,52,96,0.04);
    border-radius: 6px;
}

.fmw-form-card .fmw-form-row input:focus,
.fmw-form-card .fmw-form-row select:focus,
.fmw-form-card .fmw-form-row textarea:focus,
.fmw-rating-card .fmw-form-row input:focus,
.fmw-rating-card .fmw-form-row select:focus,
.fmw-rating-card .fmw-form-row textarea:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 1px rgba(0,184,148,0.35), 0 10px 30px rgba(0,0,0,0.06);
}

/* ===== عنوان صفحة المنتج (اسم المنتج) في كارت احترافي ===== */
.single-fmw_product .entry-title {
    display: inline-block;
    margin-top: 32px;
    margin-bottom: 26px;
    padding: 10px 32px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
}

.single-fmw_product .entry-title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0,184,148,0.24), rgba(0,214,130,0.18));
    opacity: 0.12;
    z-index: -1;
}



/* زر طلب المنتج - نص أبيض خلفية احترافية بحافة ناعمة */
.fmw-btn,
.fmw-btn:visited {
    color: #ffffff !important;
}

.fmw-form-card .fmw-btn,
.fmw-rating-card .fmw-btn {
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.fmw-form-card .fmw-btn::before,
.fmw-rating-card .fmw-btn::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, #00d2a8, #00b894);
    z-index: -1;
}

/* ===== فوتر فرست ماركتينج الاحترافي ===== */
.fmw-footer-wrapper {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: right;
    width: 100%;
    color: #f9fafb;
}

.fmw-footer-inner {
    margin: 0 auto;
}

.fmw-footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.fmw-footer-column {
    min-width: 200px;
    flex: 1 1 200px;
}

.fmw-footer-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 700;
}

.fmw-footer-description {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

.fmw-footer-heading {
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
}

.fmw-footer-heading::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 40px;
    height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 999px;
}

.fmw-footer-links-list,
.fmw-footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fmw-footer-links-list li,
.fmw-footer-contact-list li {
    margin-bottom: 8px;
}

.fmw-footer-links-list a,
.fmw-footer-contact-list a {
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.fmw-footer-links-list a:hover,
.fmw-footer-contact-list a:hover {
    transform: translateX(-3px);
    text-decoration: underline;
}

.fmw-footer-bottom {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid rgba(249,250,251,0.08);
    text-align: center;
    font-size: 13px;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .fmw-footer-columns {
        flex-direction: column;
        gap: 20px;
    }

    .fmw-footer-column {
        flex: 1 1 100%;
    }

    .fmw-footer-heading::after {
        right: auto;
        left: 0;
    }
}


/* سكشن عملاء الشركة - لوجوهات */
.fmw-clients-section {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
}

.fmw-clients-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.fmw-clients-slides {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.fmw-clients-slide {
    min-width: 100%;
    padding: 10px 5px;
}

.fmw-clients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-column-gap: 20px;
    grid-row-gap: 20px;
}

.fmw-client-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: none;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fmw-client-card-inner {
    width: 100%;
    text-align: center;
}

.fmw-client-logo img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%);
    transition: filter 0.25s ease, transform 0.25s ease;
}

.fmw-client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.fmw-client-card:hover .fmw-client-logo img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.fmw-clients-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.fmw-clients-nav-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    cursor: pointer;
    background: #00b894;
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(0, 184, 148, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fmw-clients-nav-btn:hover {
    background: #019874;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 184, 148, 0.55);
}

.fmw-clients-nav-icon {
    display: inline-block;
    line-height: 1;
}

.fmw-clients-empty {
    padding: 20px;
    text-align: center;
    background: #f8f9fb;
    border-radius: 12px;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .fmw-clients-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fmw-clients-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fmw-client-card {
        padding: 12px;
    }
}

/* عناوين السكشن الاحترافية */
.fmw-section-heading {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    text-align: center;
    margin-bottom: 40px;
}

.fmw-section-heading-inner {
    max-width: 760px;
    margin: 0 auto;
}

.fmw-section-heading-title {
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 8px;
}

.fmw-section-heading-description {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 16px;
}

.fmw-section-heading-bar {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin: 10px auto 0;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fmw-section-heading-bar-line {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 4px;
    border-radius: 999px;
    background: #00b894;
    opacity: 0.15;
}

.fmw-section-heading-bar-icon-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid #00b894;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.10);
    overflow: hidden;
}

.fmw-section-heading-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #00b894;
    color: #ffffff;
    font-size: 18px;
    animation: fmw-section-icon-move 2.6s ease-in-out infinite;
}

.fmw-section-heading-bar-icon i,
.fmw-section-heading-bar-icon svg {
    width: 18px;
    height: 18px;
}

.fmw-section-heading-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
}

@keyframes fmw-section-icon-move {
    0% {
        transform: translateX(-18px);
    }
    50% {
        transform: translateX(18px);
    }
    100% {
        transform: translateX(-18px);
    }
}

/* محاذاة */
.fmw-section-heading.fmw-align-right {
    text-align: right;
}

.fmw-section-heading.fmw-align-left {
    text-align: left;
}

.fmw-section-heading.fmw-align-right .fmw-section-heading-inner,
.fmw-section-heading.fmw-align-left .fmw-section-heading-inner {
    margin: 0;
}

/* استايلات مختلفة */
.fmw-section-heading--style1 .fmw-section-heading-bar-line {
    opacity: 0.22;
}

.fmw-section-heading--style2 .fmw-section-heading-inner {
    max-width: 900px;
}

.fmw-section-heading--style2 .fmw-section-heading-bar {
    max-width: 380px;
}

.fmw-section-heading--style2 .fmw-section-heading-title {
    font-size: 30px;
}

.fmw-section-heading--style3 {
    background: #ffffff;
    border-radius: 18px;
    padding: 22px 26px 26px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.fmw-section-heading--style3 .fmw-section-heading-inner {
    max-width: 100%;
}

.fmw-section-heading--style3 .fmw-section-heading-bar {
    margin-top: 14px;
}

@media (max-width: 767px) {
    .fmw-section-heading-title {
        font-size: 22px;
    }
    .fmw-section-heading-inner {
        padding: 0 10px;
    }
}


/* =========================
 * كروت فعاليات الشركة
 * ========================= */
.fmw-events-grid-wrapper {
    display: grid;
    grid-gap: 24px;
    margin-top: 18px;
}

.fmw-events-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fmw-events-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fmw-events-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .fmw-events-cols-3,
    .fmw-events-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fmw-events-grid-wrapper {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        grid-gap: 16px;
    }
}

.fmw-event-card,
.fmw-event-card * {
    font-family: 'Tajawal', 'Tajawal-Regular', Tahoma, Arial, sans-serif;
}

.fmw-event-card {
    position: relative;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fmw-event-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.fmw-event-card-image-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 18px;
}

.fmw-event-card-image,
.fmw-event-card-image-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
}

.fmw-event-card-image-placeholder {
    background: radial-gradient(circle at 10% 0%, #0f766e, #020617 60%);
}

.fmw-event-card-badge {
    position: absolute;
    top: 22px;
    right: 22px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: rgba(0, 0, 0, 0.7);
    color: #f9fafb;
}

.fmw-event-card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.28), transparent 60%);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.fmw-event-card-body {
    padding: 16px 20px 18px;
}

.fmw-event-card-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #020617;
}

.fmw-event-card-excerpt {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
}

.fmw-event-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fmw-event-card-more {
    position: relative;
    font-size: 13px;
    font-weight: 600;
    color: #0f766e;
}

.fmw-event-card-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #0ea5e9);
    transition: width 0.35s ease;
}

.fmw-event-card-arrow {
    font-size: 14px;
    transform: translateX(-4px);
    transition: transform 0.35s ease;
    color: #0f766e;
}

.fmw-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(15, 118, 110, 0.18);
}

.fmw-event-card-link:hover .fmw-event-card-glow {
    opacity: 1;
}

.fmw-event-card-link:hover .fmw-event-card-more::after {
    width: 100%;
}

.fmw-event-card-link:hover .fmw-event-card-arrow {
    transform: translateX(0);
}

.fmw-events-empty {
    margin-top: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px dashed rgba(248, 113, 113, 0.45);
    font-size: 14px;
    color: #7c2d12;
}

/* صفحة تفاصيل الفعالية */
.fmw-single-event-wrapper,
.fmw-single-event-wrapper * {
    font-family: 'Tajawal', 'Tajawal-Regular', Tahoma, Arial, sans-serif;
}

.fmw-single-event-wrapper {
    max-width: 1000px;
    margin: 40px auto 60px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(15,118,110,0.08);
    padding: 24px 24px 32px;
}

.fmw-single-event-header {
    margin-bottom: 18px;
}

.fmw-single-event-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111827;
}

.fmw-single-event-meta {
    font-size: 13px;
    color: #6b7280;
}

.fmw-single-event-media {
    margin: 18px 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    grid-gap: 18px;
}

.fmw-single-event-hero img {
    width: 100%;
    border-radius: 20px;
    display: block;
    object-fit: cover;
}

.fmw-single-event-video iframe,
.fmw-single-event-video video {
    width: 100%;
    border-radius: 20px;
    display: block;
}

@media (max-width: 900px) {
    .fmw-single-event-media {
        grid-template-columns: minmax(0, 1fr);
    }
}

.fmw-single-event-content {
    font-size: 14px;
    line-height: 1.9;
    color: #374151;
    margin-bottom: 22px;
}

.fmw-single-event-gallery {
    margin-top: 10px;
}

.fmw-single-event-gallery-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.fmw-single-event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    grid-gap: 10px;
}

.fmw-single-event-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}



/* =========================
 * معرض الصور - فرست ماركتينج
 * ========================= */
.fmw-gallery-grid-wrapper,
.fmw-gallery-grid-wrapper * {
    font-family: 'Tajawal', 'Tajawal-Regular', Tahoma, Arial, sans-serif;
}

.fmw-gallery-grid-wrapper {
    display: grid;
    grid-gap: 18px;
    margin-top: 12px;
}

.fmw-gallery-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fmw-gallery-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fmw-gallery-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .fmw-gallery-cols-4,
    .fmw-gallery-cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .fmw-gallery-grid-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: 12px;
    }
}

.fmw-gallery-card {
    margin: 0;
}

.fmw-gallery-card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15,118,110,0.16);
}

.fmw-gallery-card-inner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.fmw-gallery-card-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 0%, rgba(34,197,94,0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.fmw-gallery-card-inner:hover img {
    transform: scale(1.06);
}

.fmw-gallery-card-inner:hover::after {
    opacity: 1;
}

.fmw-gallery-ratio-square .fmw-gallery-card-inner {
    padding-bottom: 100%;
}

.fmw-gallery-ratio-land .fmw-gallery-card-inner {
    padding-bottom: 70%;
}

.fmw-gallery-ratio-portrait .fmw-gallery-card-inner {
    padding-bottom: 125%;
}

.fmw-gallery-card-inner img {
    position: absolute;
    inset: 0;
}

.fmw-gallery-empty {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px dashed rgba(248,113,113,0.45);
    font-size: 14px;
    color: #7c2d12;
}


.fmw-clients-prev, .fmw-clients-next { display:none !important; }


/* سكشن الخدمات - سلايدر */
.fmw-services-section{
    font-family:'Tajawal',sans-serif;
    direction:rtl;
    width:100%;
}
.fmw-services-slider{
    position:relative;
    width:100%;
}
.fmw-services-viewport{
    overflow:hidden;
    width:100%;
}
.fmw-services-track{
        display:flex;
        gap: var(--fmw-srv-gap, 18px);
    will-change:transform;
    transform:translateX(0);
}
.fmw-service-item{
    flex:0 0 var(--fmw-srv-card-w, calc((100% - (var(--fmw-srv-gap, 18px) * (var(--fmw-srv-per, 2) - 1))) / var(--fmw-srv-per, 2)));
    max-width:var(--fmw-srv-card-w, calc((100% - (var(--fmw-srv-gap, 18px) * (var(--fmw-srv-per, 2) - 1))) / var(--fmw-srv-per, 2)));
}

.fmw-service-card{
    background:#fff;
    border:1px solid rgba(0,0,0,0.08);
    border-radius:22px;
    overflow:hidden;
    box-shadow: none;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    height: var(--fmw-srv-card-h, 100%);
}

.fmw-service-card:hover{
    transform:translateY(-4px);
    box-shadow: none;
    border-color: rgba(0,0,0,0.14);
}

.fmw-service-img{
    width:100%;
    aspect-ratio: 4 / 3;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
}
.fmw-service-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:18px;
    display:block;
    max-width: var(--fmw-srv-img-w, 220px);
    max-height: var(--fmw-srv-img-h, 96px);
}
.fmw-service-body{
    padding:18px 18px 22px;
    text-align:center;
}
.fmw-service-title{
        margin:0 0 14px;
        font-size: var(--fmw-srv-title-fs, 34px);
    line-height:1.05;
    font-weight:800;
    color:#111;
}
.fmw-service-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    border-radius:999px;
    border:2px dashed #ff7a1a;
    color:#ff7a1a;
    font-weight:700;
    font-size:16px;
    text-decoration:none;
    background:transparent;
    transition:transform .2s ease, opacity .2s ease;
    user-select:none;
}
.fmw-service-card:hover .fmw-service-btn{
    transform:translateY(-1px);
}
.fmw-service-btn-disabled{
    opacity:.65;
    cursor:default;
}

/* تعويم بسيط */
.fmw-services-slider[data-motion="float"] .fmw-service-card{
    animation: fmwSrvFloat var(--fmw-srv-float, 8s) ease-in-out infinite;
}
.fmw-services-slider[data-motion="float"] .fmw-service-item:nth-child(2n) .fmw-service-card{
    animation-delay: .35s;
}
.fmw-services-slider[data-motion="float"] .fmw-service-item:nth-child(3n) .fmw-service-card{
    animation-delay: .7s;
}
@keyframes fmwSrvFloat{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-6px); }
}
.fmw-services-slider[data-motion="float"] .fmw-service-card:hover{
    animation-play-state: paused;
}

@media (max-width:1024px){
    .fmw-service-title{ font-size:28px; }
}
@media (max-width:767px){
    .fmw-service-title{ font-size:24px; }
    .fmw-service-img img{ padding:14px; }
    .fmw-services-track{ gap:14px; }
}



/* لمعة احترافية على صورة الخدمة */
.fmw-service-img{
    position:relative;
    overflow:hidden;
}
.fmw-services-slider[data-shine="yes"] .fmw-service-img::after{
    content:'';
    position:absolute;
    top:-120%;
    left:-60%;
    width:60%;
    height:340%;
    background: linear-gradient(115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 70%);
    transform: rotate(20deg);
    opacity:0;
    pointer-events:none;
}
.fmw-services-slider[data-shine="yes"] .fmw-service-card:hover .fmw-service-img::after{
    opacity:1;
    animation: fmwSrvShine 900ms ease forwards;
}
@keyframes fmwSrvShine{
    0%{ transform: translateX(-140%) rotate(20deg); }
    100%{ transform: translateX(340%) rotate(20deg); }
}


/* أسهم صغيرة لسلايدر الخدمات */
.fmw-services-nav{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    margin-top:12px;
}
.fmw-services-nav-btn{
    width:32px;
    height:32px;
    border-radius:999px;
    border:1px solid rgba(0,0,0,0.12);
    background:#fff;
    box-shadow:none;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
    line-height:1;
    padding:0;
    transition:transform .15s ease, opacity .15s ease, border-color .15s ease;
}
.fmw-services-nav-btn:hover{
    transform:translateY(-1px);
    border-color: rgba(0,0,0,0.18);
}

/* Fix: اجعل حركة السلايدر تعمل بشكل صحيح داخل صفحات RTL */
.fmw-services-viewport{
    direction:ltr;
}
.fmw-services-track{
    direction:ltr;
}
.fmw-service-body{
    direction:rtl;
}


/* Services arrows fix: force transform-based paging slider */
.fmw-services-viewport{
    overflow:hidden !important;
    width:100%;
}
.fmw-services-track{
    display:flex;
    flex-wrap:nowrap;
    will-change: transform;
    transform: translate3d(0,0,0);
}

/* Services slider: ensure paging works */
.fmw-services-viewport{ overflow:hidden !important; width:100%; }
.fmw-services-track{ display:flex; flex-wrap:nowrap !important; will-change:transform; }


/* ضمان حركة سلايدر الخدمات */
.fmw-services-viewport{
    overflow:hidden;
    direction:ltr;
}
.fmw-services-track{
    display:flex;
    flex-wrap:nowrap;
    direction:ltr;
    will-change: transform;
    transform: translate3d(0,0,0);
}
.fmw-service-body{
    direction:rtl;
}


/* خيارات الموبايل: بوكسين جنب بعض أو تحت بعض */
@media (max-width: 767px){
    .fmw-services-slider[data-mobile-layout="two"]{
        --fmw-srv-per: 2;
        --fmw-srv-gap: 12px;
    }
    .fmw-services-slider[data-mobile-layout="stack"]{
        --fmw-srv-per: 1;
        --fmw-srv-gap: 12px;
    }

    .fmw-services-slider .fmw-service-card{
        border-radius:16px;
    }
    .fmw-services-slider .fmw-service-body{
        padding:12px 12px 14px;
    }
    .fmw-services-slider .fmw-service-img{
        padding:14px 12px;
    }
    }


/* Touch support for services slider */
.fmw-services-viewport{
    touch-action: pan-y;
}
