﻿/* =========================================================
   صفحه مدیران شهرداری شاندیز
   ========================================================= */

.managers-page {
    direction: rtl;
    width: 100%;
    min-height: 100vh;
    padding: 45px 25px 80px;
    box-sizing: border-box;
    background: #f4f6f7;
}


/* =========================================================
   عنوان صفحه
   ========================================================= */

.managers-title {
    text-align: center;
    margin-bottom: 45px;
}

.title-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    background: linear-gradient( 135deg, #12635e, #198078 );
    box-shadow: 0 8px 22px rgba(18, 99, 94, 0.22);
}

.managers-title h1 {
    margin: 0;
    color: #12635e;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.8;
}

.managers-title p {
    margin: 8px 0 15px;
    color: #777;
    font-size: 15px;
}


/* =========================================================
   خط تزئینی
   ========================================================= */

.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

    .title-line span {
        width: 75px;
        height: 2px;
        display: block;
        background: #d49a32;
        border-radius: 10px;
    }

    .title-line i {
        color: #d49a32;
        font-size: 12px;
    }


/* =========================================================
   GRID مدیران
   6 ستون در دسکتاپ
   ========================================================= */

.managers-grid {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px;
}


/* =========================================================
   کارت مدیر
   ========================================================= */

.manager-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(18, 99, 94, 0.08);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

    .manager-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(18, 99, 94, 0.18);
    }


    /* نوار طلایی/سبز بالای کارت */

    .manager-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 4px;
        z-index: 5;
        background: linear-gradient( 90deg, #12635e, #d49a32, #12635e );
    }


/* =========================================================
   عکس مدیر
   ========================================================= */

.manager-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e7ecec;
}

    .manager-photo img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.manager-card:hover .manager-photo img {
    transform: scale(1.08);
}


/* =========================================================
   Overlay روی عکس
   ========================================================= */

.photo-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient( to top, rgba(18, 99, 94, 0.70), rgba(18, 99, 94, 0.05) );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.manager-card:hover .photo-overlay {
    opacity: 1;
}


/* آیکون روی عکس */

.overlay-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #12635e;
    background: rgba(255, 255, 255, 0.95);
    font-size: 21px;
    transform: translateY(15px);
    transition: transform 0.35s ease;
}

.manager-card:hover .overlay-icon {
    transform: translateY(0);
}


/* =========================================================
   محتوای کارت
   ========================================================= */

.manager-content {
    text-align: center;
    padding: 18px 12px 20px;
    box-sizing: border-box;
}


/* سمت */

.manager-position {
    display: block;
    margin-bottom: 6px;
    color: #d49a32;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* نام */

.manager-content h2 {
    margin: 0;
    color: #12635e;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.8;
}


/* =========================================================
   خط تزئینی داخل کارت
   ========================================================= */

.manager-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 9px auto 7px;
}

    .manager-separator span {
        width: 30px;
        height: 1px;
        background: #ddd;
    }

    .manager-separator i {
        color: #d49a32;
        font-size: 8px;
    }


/* متن پایین کارت */

.manager-content p {
    margin: 0;
    color: #999;
    font-size: 12px;
}


/* =========================================================
   وقتی هیچ مدیری وجود ندارد
   ========================================================= */

.no-manager {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #888;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.06);
}

    .no-manager i {
        color: #d49a32;
        font-size: 35px;
    }

    .no-manager span {
        font-size: 15px;
    }


/* =========================================================
   دکمه برگشت به بالا
   ========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #12635e;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    z-index: 9999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: #d49a32;
        transform: translateY(-4px);
    }


/* =========================================================
   لپ تاپ
   ========================================================= */

@media (max-width: 1200px) {

    .managers-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .managers-grid {
        gap: 18px;
    }

    .manager-content {
        padding: 15px 8px 17px;
    }

    .manager-position {
        font-size: 12px;
    }

    .manager-content h2 {
        font-size: 16px;
    }
}


/* =========================================================
   تبلت
   3 ستون
   ========================================================= */

@media (max-width: 900px) {

    .managers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }

    .managers-title h1 {
        font-size: 28px;
    }
}


/* =========================================================
   موبایل
   1 ستون
   ========================================================= */

@media (max-width: 600px) {

    .managers-page {
        padding: 30px 12px 70px;
    }

    .managers-title {
        margin-bottom: 30px;
    }

    .title-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .managers-title h1 {
        font-size: 24px;
    }

    .managers-title p {
        padding: 0 15px;
        font-size: 13px;
    }

    .title-line span {
        width: 50px;
    }

    .managers-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .manager-card {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .manager-content h2 {
        font-size: 18px;
    }

    .manager-position {
        font-size: 13px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 44px;
        height: 44px;
    }
}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 380px) {

    .managers-title h1 {
        font-size: 21px;
    }

    .manager-card {
        max-width: 320px;
    }
}