:root {
    /* --primary-color: #6a11cb; */
    /* --secondary-color: #2575fc; */
    --accent-color: #ff4e50;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --popup-bg: rgba(255, 255, 255, 0.95);
    --popup-text: #333;
}

.fractional * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fractional {
    /* background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%); */
    /* color: rgb(189, 22, 22); */
    /* min-height: 100vh; */
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
    /* padding: 2rem; */
}

.header-frac {
    align-items: center !important;

    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    /* background: red; */
}

.fractional h1 {

    margin-top: 20px;
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #7f47e7, #0e013d);
    -webkit-background-clip: text;
    background-clip: text;
    /* color: transparent; */
    font-family: "Vazir";
    color: yellow;
    text-shadow:
        0 0 20px #644925,
        0 0 30px #3e0b9b,
        0 0 30px #e60073,
        0 0 60px #1b8142,
        0 0 50px #e60073,
        0 0 80px #6e750d,
        0 0 100px #a70e27;
}

.background-frac {

    position: relative;
    width: 100%;
    height: 70%;
    background-image: url('../../../images/Fractionalslider/wall-frac.webp');
    /* opacity: .5; */

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* background: linear-gradient(135deg, #2c3e50, #4ca1af);  */
    /* padding: 20px;
    margin: 20px 0; */
}

.subtitle-frac {
    margin-top: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.5rem;
    /* background: linear-gradient(to right, #7f47e7, #0e013d); */
    -webkit-background-clip: text;
    background-clip: text;
    /* color: transparent; */
    font-family: "Vazir";


    color: rgb(1, 48, 48);
    /* text-shadow: 
    0 0 10px #644925,
    0 0 20px #3e0b9b,
    0 0 30px #e60073,
    0 0 40px #1b8142,
    0 0 50px #e60073,
    0 0 60px #6e750d,
    0 0 70px #a70e27; */
    /* opacity: 0.9;
    max-width: 40%;
    margin: 20 auto;

    text-align: center; */

}

.slider-container-frac {
    position: relative;
    width: 100%;
    max-width: 80%;
    height: 500px;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 10px 15px 20px rgba(27, 20, 20, 0.8),
        -10px 15px 20px rgba(27, 20, 20, 0.8);

    margin: 30px auto;
    /* وسط‌چین کردن */
    /* opacity: 10; */



}

.slide-frac {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-frac.active-frac {
    opacity: .9;
}

.slide-image-frac {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.grid-overlay-frac {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    transition: grid-template-columns 0.5s ease, grid-template-rows 0.5s ease;
}

.grid-cell-frac {
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
}

/* خطوط عمودی */
.vertical-line-frac {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1.2px;
    background: rgba(255, 255, 255, .6);
    transform: scaleY(0);
    transform-origin: top;
    animation: drawLineVerticalFrac 0.8s ease forwards;
}

/* خطوط افقی */
.horizontal-line-frac {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.2px;
    background: rgba(255, 255, 255, .6);
    transform: scaleX(0);
    transform-origin: left;
    animation: drawLineHorizontalFrac 0.8s ease forwards;
}

@keyframes drawLineVerticalFrac {
    to {
        transform: scaleY(1);
    }
}

@keyframes drawLineHorizontalFrac {
    to {
        transform: scaleX(1);
    }
}

.owner-popup-frac {
    position: absolute;
    background: var(--popup-bg);
    color: var(--popup-text);
    border-radius: 12px;
    padding: 2px 5px;
    width: 80px;
    text-align: center;
    z-index: 10;
    opacity: .1;
    transform: scale(0.5);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    border: 3px solid rgba(3, 12, 87, 0.7);
}

.owner-popup-frac::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--popup-bg);
}

.owner-popup-frac.show-frac {
    opacity: .8;
    transform: scale(.8);
}

.owner-avatar-frac {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    border: 2px solid white;
}

.owner-name-frac {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 2px;
    color: #0a1016;
    direction: ltr;
}

.owner-city-frac {
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(3, 6, 24, 0.9);
}




@media (max-width: 768px) {
    .slider-container-frac {
        height: 400px;
    }

    .fractional h1 {
        font-size: 3rem;
    }

    .owner-popup-frac {
        /* width: 50px; */
        /* padding: 10px 12px; */

    }

    .owner-popup-frac.show-frac {
        transform: scale(.4);
    }
}