﻿/* استایل برای همه حالت‌ها */
.featured-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.featured-img-wrapper {
    width: 100%;
    /* aspect-ratio: 1 / 1; */
    overflow: hidden;
    border-radius: 12px;
    background-color: #f5f5f5;
}

.featured-single-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    transform: none !important;
}

    .featured-single-img:hover {
        transform: scale(1.03);
    }

.modal_post_grid {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .modal_post_grid:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

/* 3 نقطه برای عنوان در همه حالت‌ها */
.featured-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.4;
    max-height: calc(1.4em * 2.5);
    min-height: calc(1.4em * 2.5);
    /* min-height: 3.2em; */
    text-align: center;
    padding: 10px 10px 0 10px;
    font-size: 16px;
}

/* ===== متن‌های توضیحی ===== */
.about_company {
    color: #1e293b;
    font-size: 16px;
    line-height: 1.8;
    background: #fafcff;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid #ecf3fa;
    margin: 18px 0 10px 0;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.01);
}

    .about_company strong {
        color: #1a5a6b;
        font-weight: 700;
    }

/* ===== پنل شروع سریع ===== */
.contact_panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 18px 0 10px 0;
    padding: 10px 0;
}

/* دو گزینه اول - به صورت دکمه‌های بدون کادر با آیکون کنار متن */
.c_pan_action {
    display: block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    color: #1e3a5a;
    border-radius: 10px;
    transition: all 0.25s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

    .c_pan_action:hover {
        background: #f0f7fc;
        transform: translateX(6px);
    }

    .c_pan_action a {
        color: #1e3a5a;
        text-decoration: none;
        font-weight: 600;
        transition: 0.2s;
        display: inline !important;
    }

        .c_pan_action a:hover {
            color: #0f5b6b;
        }

    /* آیکون‌های دو گزینه اول - دقیقاً کنار متن */
    .c_pan_action i {
        font-size: 18px;
        width: 36px;
        height: 36px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: #e8f0f8;
        border-radius: 10px;
        color: #1a6b7a;
        transition: all 0.3s ease;
        vertical-align: middle;
        margin-left: 12px;
    }

    .c_pan_action:hover i {
        background: #1a6b7a;
        color: #fff;
        transform: scale(1.05);
    }

/* ===== آیتم سوم - توضیحی (جدا از دو گزینه) ===== */
.c_pan_info {
    display: block;
    /* padding: 14px 16px 6px 16px; */
    font-size: 18px;
    color: #475569;
    border-top: 2px dashed #e2e8f0;
    margin-top: 10px;
    padding-top: 18px;
}

    .c_pan_info i {
        font-size: 20px;
        width: 38px;
        height: 38px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: #f1f5f9;
        border-radius: 50%;
        color: #64748b;
        vertical-align: middle;
        margin-left: 12px;
    }

    .c_pan_info span {
        font-weight: 400;
        line-height: 1.6;
        vertical-align: middle;
    }

        .c_pan_info span strong {
            color: #1a5a6b;
            font-weight: 600;
        }

/* ===== کپی‌رایت ===== */
.c_pan_copyright {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-weight: 400;
    color: #94a3b8;
    padding: 20px 0 8px 0;
    font-size: 14px;
    text-align: center;
    width: 100%;
    /* border-top: 1px solid #e9edf2 !important; */
    margin-top: 20px;
}

.title_no_a_28 {
    border-top: 1px solid #e9edf2 !important;
    border-bottom: 2px dashed #e2e8f0;
    margin-top: 25px;
    padding-bottom: 20px;
    padding-top: 20px;
}

.option_panel-popup .contact_panel a {
    font-size: 16px;
}
