﻿:root {
    --size: 150px;
    --bg: #eee;
    --track: #e6e6e6;
    --accent: #108267;
    --danger: #e05b5b;
    --text: #222;
}
.timer-wrap {
    width: var(--size);
    height: var(--size);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-direction: column;
}

.progress-circle {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    display: block;
}

.circle-bg {
    fill: none;
    stroke: var(--track);
    stroke-width: 12;
}

.circle-progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 18;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.9s linear;
}

.center {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
    transform: rotate(0deg);
}

.time-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}






/*index css*/




.timeline {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
    max-width: 900px;
}

    .timeline::after {
        content: '';
        position: absolute;
        width: 4px;
        background-color: #108267;
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -2px;
    }

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
    opacity: 0; /* برای شروع مخفی */
}

.timeline-item2 {
    left: -50% !important;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background-color: #108267;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item1::before, .timeline-item3::before {
    left: -10px;
}

.timeline-item2::before {
    right: -10px;
}

/* انیمیشن‌ها */
@keyframes fadeInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 1s ease forwards;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 20px; /* خط به سمت چپ */
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 25px;
        left: 0 !important; /* حذف موقعیت قبلی */
    }

    .timeline-item1::before,
    .timeline-item2::before,
    .timeline-item3::before {
        left: 12px !important;
        right: auto !important;
    }
}



.btn-light-mode {
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1em;
    text-transform: capitalize;
    background: #fff;
    color: #108267;
    border-radius: 100px;
    padding: 18px 30px 18px 70px;
    border: 1px solid #108267;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

@media only screen and (max-width: 991px) {
    .btn-light-mode {
        font-size: 16px;
        padding: 15px 20px 15px 60px;
    }
}

.btn-light-mode::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: auto;
    left: 0;
    width: 0;
    height: 100%;
    background: #108267;
    border-radius: 100px;
    transition: all 0.4s ease-in-out;
    z-index: -1;
}

.btn-light-mode:hover::before {
    width: 100%;
    right: 0px;
    left: auto;
}

.btn-light-mode:hover {
    color: #fff;
}


.golestan-gallery {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 50px 20px;
}

/* کلاژ گالری */
.collage-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 12px;
}

.collage-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .collage-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .3s ease, box-shadow .3s ease;
    }

        .collage-item img:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

    /* سایزهای مختلف */
    .collage-item.large {
        grid-column: span 6;
        grid-row: span 3;
    }

    .collage-item.tall {
        grid-column: span 4;
        grid-row: span 2;
    }

    .collage-item.wide {
        grid-column: span 4;
        grid-row: span 1;
    }

    .collage-item.small {
        grid-column: span 4;
        grid-row: span 1;
    }

    .collage-item.custom {
        grid-column: span 5;
        grid-row: span 1;
    }

/* ریسپانسیو */
@media (max-width: 992px) {
    .row.align-items-center {
        flex-direction: column;
    }

    .collage-gallery {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 768px) {
    .collage-gallery {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 100px;
    }
}
