.egh-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.egh-slides-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.egh-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
}

.egh-slide.active {
    opacity: 1;
}

.egh-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* عمودی وسط — افقی وسط باقی میماند اما توسط text-align کنترل میشود */
}

.egh-slide-content-inner {
    padding: 40px;
    max-width: 80%;
    text-align: center;
    color: #fff;
}

.egh-slide-content-inner.left {
    text-align: left;
}

.egh-slide-content-inner.right {
    text-align: right;
}

.egh-slide-content-inner h2 {
    margin: 0 0 15px;
    font-size: 2.5rem;
    font-weight: 700;
}

.egh-slide-content-inner p {
    margin: 0 0 20px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.egh-slide-content-inner .egh-btn {
    margin: 70px 0 0 0;                  /*      */
    width: 160px;                  /*      */
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s, transform 0.3s;
}

.egh-slide-content-inner .egh-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.egh-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.egh-btn:hover {
    background: rgba(0,0,0,0.8);
}

.egh-prev { left: 10px; }
.egh-next { right: 10px; }

.egh-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.egh-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background 0.3s;
}

.egh-dot.active {
    background: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .egh-slides-container {
        height: 300px;
    }
    .egh-slide-content-inner h2 {
        font-size: 1.8rem;
    }
    .egh-slide-content-inner p {
        font-size: 1rem;
    }
    .egh-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* RTL Support (optional but recommended) 
[dir="rtl"] .egh-slide-content-inner {
    text-align: center;
}*/
[dir="rtl"] .egh-prev { left: auto; right: 10px; }
[dir="rtl"] .egh-next { right: auto; left: 10px; }
