.cec-wrapper {
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cec-wrapper *,
.cec-wrapper *::before,
.cec-wrapper *::after {
    box-sizing: border-box;
}

.cec-section-heading {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

/* باکس نشانی (همیشه عرض 100%) */
.cec-address-box {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.cec-address-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #e2e8f0;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cec-address-icon svg {
    width: 22px;
    height: 22px;
}

.cec-address-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 6px;
}

.cec-address-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

/* چیدمان گرید دکمه‌ها */
.cec-grid {
    display: grid;
    gap: 12px;
}

/* دسکتاپ: کنار هم و متقارن */
.cec-contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cec-social-grid,
.cec-map-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

/* استایل پایه دکمه‌ها (کل دکمه قابل کلیک) */
.cec-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    cursor: pointer;
    text-align: center;
}

.cec-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    filter: brightness(1.05);
}

.cec-btn .cec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cec-btn .cec-icon svg {
    width: 22px;
    height: 22px;
}

.cec-btn .cec-icon img.cec-svg-img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain;
    display: block;
}

.cec-btn .cec-icon img.cec-eitaa-img {
    background-color: #ffffff;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .cec-btn .cec-icon img.cec-svg-img {
        width: 20px;
        height: 20px;
    }
}

/* دکمه‌های تماس و ایمیل */
.cec-phone-btn,
.cec-email-btn {
    background-color: #1e293b;
    justify-content: flex-start;
    padding: 12px 18px;
}

.cec-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    overflow: hidden;
}

.cec-sub-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

.cec-ltr-val {
    font-size: 14px;
    font-weight: 600;
    word-break: break-all;
}

/* رنگ‌های سازمانی شبکه‌های اجتماعی */
.cec-brand-telegram {
    background-color: #229ED9;
}

.cec-brand-whatsapp {
    background-color: #25D366;
}

.cec-brand-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.cec-brand-bale {
    background-color: #00BFA5;
}

.cec-brand-rubika {
    background: linear-gradient(135deg, #5e35b1 0%, #8e24aa 100%);
}

.cec-brand-eitaa {
    background-color: #EE7F22;
}

/* رنگ‌های سازمانی مسیریاب‌ها */
.cec-brand-google_maps {
    background-color: #34A853;
}

.cec-brand-waze {
    background-color: #33CCFF;
    color: #0f172a !important;
}

.cec-brand-neshan {
    background-color: #1D4ED8;
}

.cec-brand-balad {
    background-color: #0077FF;
}

/* باکس نمایشی نقشه نشان */
.cec-neshan-embed {
    margin-top: 14px;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    line-height: 0;
}

.cec-neshan-embed iframe {
    width: 100%;
    display: block;
    border: 0;
}

/* تبلت */
@media (max-width: 1024px) {
    .cec-social-grid,
    .cec-map-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* موبایل: دقیقاً ۲ دکمه در هر ردیف برای شبکه‌های اجتماعی و مسیریاب‌ها */
@media (max-width: 767px) {
    .cec-address-box {
        padding: 14px 16px;
    }

    .cec-contact-grid {
        grid-template-columns: 1fr;
    }

    .cec-social-grid,
    .cec-map-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cec-btn {
        padding: 11px 10px;
        font-size: 13px;
        gap: 7px;
    }

    .cec-btn .cec-icon svg {
        width: 19px;
        height: 19px;
    }
}