/* =========================
   Why Ultra 3
========================= */
.why-ultra-4{
    padding:90px 0;  
}


.why-ultra-4  h3{
       margin: 0 0 2.8rem;
    text-align: right;
    color: var(--color-primary);
    display: inline-block;
    z-index: 1;
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-primary);
    background: var(--color-secondary);
    width: 40rem;
    padding: 1.4rem;
}


.why-ultra-4 .why-content{
    position: relative;
    z-index: 2;
    clear: both;
    display: flex;
    align-items: start;
   justify-content: space-between;
    gap: 100px;
}

/* =========================
   Text Side
========================= */
.why-ultra-4 .text-side{
    flex: 1 1 560px;
    max-width: 600px;
    text-align: right;
}

.why-ultra-4 .text-side h4{
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.55;
    color: var(--color-primary);
}

.why-ultra-4 .text-side p{
    margin: 0 0 18px;
    max-width: 560px;
    font-size: 13px;
    line-height: 2.05;
    color: rgba(52,52,52,.78);
}


/* =========================
   Image Side
========================= */
.why-ultra-4 .image-side{
    position: relative;
    flex: 0 0 420px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* شکل L نارنجی پشت عکس */
.why-ultra-4 .image-side::before{
    content:"";
    position:absolute;
    left: -22px;
    bottom:-44px;
    width: 330px;
    height: 330px;
    background: var(--color-secondary);
    z-index: 0;

    /* L-shape + برش مورب پایین */
   clip-path: polygon(0 0, 100% 0%, 100% 45%, 45% 100%, 0 100%);

}


.why-ultra-4 .image-side::after{
    content: "";
    white-space: pre;
    position: absolute;
    right: -9rem;
    top: 150px;
    width: 150px;
    height: 130px;
    padding:18px;
    text-align: right;
    color: var(--color-white);
    font-weight: 900;
    font-size: 26px;
    line-height: 1.25;
    background: var(--color-secondary);
    z-index: 2;

    /* گوشه مورب بالا-چپ (مثل طرح) */
   clip-path: polygon(0 50%, 51% 0, 100% 0, 100% 100%, 0 100%);


    /* 3 خط سفید پایین */
    box-shadow: inset 0 -16px 0 rgba(0,0,0,0);
}


/* عکس */
.why-ultra-4 .image-side img{
    position: relative;
    z-index: 1;
    width: 360px;
    height: 400px;
    object-fit: cover;
    display: block;
    box-shadow: var(--box-shadow);
    background: var(--color-white);
}
.why-ultra-4 .image-side svg {
    position: absolute;
    z-index: 999;
    right: -5rem;
    top: 45%;
}

.why-ultra-4 .about-btn{
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.why-ultra-4 .about-btn a{
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.6rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    white-space: nowrap;
}


.why-ultra-4 .about-btn a svg{
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
}
.why-ultra-4 .about-btn a svg path{
    stroke: currentColor !important;
}


.why-ultra-4 .about-btn a:first-child{
    background: var(--color-primary);
    color: var(--color-white);
}


.why-ultra-4 .about-btn a:last-child{
    background: var(--color-secondary);
    color: var(--color-primary);
    
}

/* =========================
   Responsive
========================= */
@media (max-width: 992px){
    .why-ultra-4{ padding: 34px 24px 40px; }
    .why-ultra-4 .why-content{
        flex-direction: column;
        align-items: flex-start;
        gap: 36px;
    }
    .why-ultra-4 .image-side{
        width: 100%;
        flex-basis: auto;
    }
    .why-ultra-4 .image-side::after{
        left: 240px;
    }
}

@media (max-width: 520px){
    .why-ultra-4 .text-side h4{ font-size: 22px; }
    .why-ultra-4 .image-side::before{
        width: 290px;
        height: 270px;
    }
	.why-ultra-4 .image-side::after {
    right: -2rem;
}
    .why-ultra-4 .image-side::after{
        left: 210px;
        width: 135px;
        height: 120px;
        font-size: 24px;
    }
	.why-ultra-4 .why-content {
        gap: 60px;
    }
}



/*Hover*/
/* =========================
   About Buttons - برق روی دکمه (No radius)
   .why-ultra-4 .about-btn a
========================= */

.why-ultra-4 .about-btn a{
  position: relative;
  overflow: hidden; /* برای برق */
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  will-change: transform;
}

/* برق (Shine) */
.why-ultra-4 .about-btn a::before{
  content:"";
  position:absolute;
  top: -60%;
  left: -80%;
  width: 55%;
  height: 220%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,.10) 35%,
    rgba(255,255,255,.55) 50%,
    rgba(255,255,255,.10) 65%,
    transparent 100%
  );
  transform: rotate(18deg) translateX(-30%);
  opacity: 0;
  pointer-events:none;
}

/* هاور */
.why-ultra-4 .about-btn a:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.14);
  filter: brightness(1.03);
}

/* وقتی هاور شد، برق رد میشه */
.why-ultra-4 .about-btn a:hover::before{
  opacity: 1;
  animation: ultra-about-shine .75s ease-out forwards;
}

@keyframes ultra-about-shine{
  0%   { transform: rotate(18deg) translateX(-40%); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: rotate(18deg) translateX(260%); opacity: 0; }
}

/* فلش: تکون جذاب */
.why-ultra-4 .about-btn a svg{
  transition: transform .18s ease, opacity .18s ease;
}

.why-ultra-4 .about-btn a:hover svg{
  transform: translateX(-5px);
  opacity: .95;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .why-ultra-4 .about-btn a,
  .why-ultra-4 .about-btn a::before,
  .why-ultra-4 .about-btn a svg{
    transition: none !important;
    animation: none !important;
  }
}

