:root {
    --irp-bg: #2C3E50;      /* رنگ پس‌زمینه اصلی */
    --irp-cta: #1BBC9B;     /* رنگ دوم (متغیر تنظیمات) */
    --irp-text: #FFFFFF;    /* رنگ متن */
    --irp-cta-text: #FFFFFF;
    --irp-hover: #152B40;   /* رنگ هاور (از تنظیمات پلاگین می‌آید) */
}

/* =========================================
   BASE RESET & WRAPPER
   ========================================= */
.irp-wrapper {
    direction: rtl;
    width: 100%;
    margin: 15px 0;
    box-sizing: border-box;
    position: relative;
    background-color: var(--irp-bg);
    overflow: hidden;
    line-height: 1.4;
    /* transition برای هاور */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}
.irp-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }
.irp-wrapper a { text-decoration: none; color: inherit; display: flex; width: 100%; height: 100%; }

/* --- فیکس ۱: اعمال هاور --- */
.irp-wrapper:hover {
    background-color: var(--irp-hover) !important; 
}

/* --- فیکس ۲: کلاس سایه --- */
.irp-has-shadow {
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* --- فیکس ۳: تنظیمات عکس (Object-fit: contain) --- */
.irp-wrapper img { 
    display: block; 
    width: 100%;
    height: 100%;
    object-fit: contain;  
    background: white; /* برای وضوح بیشتر تصاویر contain شده */
}

/* Helper Classes */
.irp-flex { display: flex; width: 100%; height: 100%; align-items: stretch; }
.irp-center { display: flex; align-items: center; justify-content: center; }
.irp-col-flex { display: flex; flex-direction: column; justify-content: center; }


/* =========================================
   1. KANGO (108px)
   ========================================= */
.irp-s1 { height: 108px; }

.irp-s1-right {
    width: 30%;
    background-color: var(--irp-cta);
    display: block; 
}

.irp-s1-center {
    width: 69%;
    padding-right: 15px;
    align-items: flex-start;
    gap: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.irp-s1-center .cta-txt { font-size: 14px; text-decoration: underline; color: var(--irp-cta-text); }
.irp-s1-center .title-txt { font-size: 22px; font-weight: 700; color: var(--irp-text); }

.irp-s1-left {
    width: 1%;
    background-color: var(--irp-cta);
}


/* =========================================
   2. SHOK (85px)
   ========================================= */
.irp-s2 { height: 85px; justify-content: space-between; }

.irp-s2-content {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.irp-s2-content .title-txt { font-size: 22px; font-weight: 700; color: var(--irp-text); }
.irp-s2-content .cta-txt { font-size: 16px; text-decoration: underline; color: var(--irp-cta-text); }

.irp-s2-left {
    width: 10%;
    /* تغییر: استفاده از رنگ متغیر تنظیمات */
    background-color: var(--irp-cta); 
}
.irp-s2-left i { font-size: 30px; color: #D2D2D0; }


/* =========================================
   3. RUBY (145px)
   ========================================= */
.irp-s3 { height: 145px; }

.irp-s3-right {
    width: 30%;
    /* تغییر: استفاده از رنگ متغیر تنظیمات */
    background-color: var(--irp-cta); 
    display: block; /* برای پر شدن عکس */
}

.irp-s3-center {
    width: 65%;
    padding-right: 20px;
    gap: 10px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.irp-s3-center .cta-txt { font-size: 16px; text-decoration: underline; color: var(--irp-cta-text); }
.irp-s3-center .title-txt { font-size: 22px; font-weight: 700; color: var(--irp-text); }

.irp-s3-left {
    width: 5%;
    /* تغییر: استفاده از رنگ متغیر تنظیمات */
    background-color: var(--irp-cta);
}
.irp-s3-left i { font-size: 30px; color: #D2D2D0; }


/* =========================================
   4. MINIMAL (55px)
   ========================================= */
.irp-s4 { height: 55px; }

.irp-s4-left {
    width: 30%;
    justify-content: flex-end;
    padding-left: 15px;
    display: flex; align-items: center;
}
.irp-s4-left .cta-txt { font-size: 16px; color: var(--irp-cta-text); }

.irp-s4-right {
    width: 1%;
    background-color: var(--irp-cta);
}

.irp-s4-center {
    width: 67%;
    justify-content: flex-start;
    padding-right: 20px;
    display: flex; align-items: center;
}
.irp-s4-center .title-txt { font-size: 22px; font-weight: 700; text-decoration: underline; color: var(--irp-text); }


/* =========================================
   5. BUTTON (90px)
   ========================================= */
.irp-s5 { height: 90px; }

.irp-s5-right {
    width: 30%;
    background-color: var(--irp-cta);
    display: block; /* برای پر شدن عکس */
}

.irp-s5-center {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.irp-s5-title { 
    font-size: 20px; font-weight: 700; color: var(--irp-text);
    padding-left: 20px;
}
.irp-s5-btn {
    background-color: var(--irp-cta);
    padding: 5px 15px;
    border-radius: 5px;
    height: 34px;
    display: flex; align-items: center; justify-content: center;
}
.irp-s5-btn span { font-size: 14px; color: #fff; }


/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 767px) {
    .irp-s1 { height: 60px; }
    .irp-s2, .irp-s3, .irp-s4, .irp-s5 { height: 56px; }

    .irp-s1-right, .irp-s3-right, .irp-s5-right { width: 70px !important; flex-shrink: 0; }
    .irp-s2-left, .irp-s3-left { width: 40px !important; flex-shrink: 0; }
    .irp-s2-left i, .irp-s3-left i { font-size: 18px; }

    .irp-s1-center, .irp-s3-center { width: auto; flex-grow: 1; }
    
    .title-txt, .irp-s5-title, .irp-s4-center .title-txt { font-size: 15px !important; }
    .cta-txt, .irp-s5-btn span, .irp-s4-left .cta-txt { font-size: 12px !important; }
    
    .irp-s4-left { width: 35%; }
    .irp-s4-center { width: 60%; }
}