/* استایل فوتر سفارشی - تمام عرض */
.cf-footer {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background-color: #0f1b3d;
    color: #ffffff;
    font-family: 'Vazir', 'IRANSans', Tahoma, sans-serif;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    box-sizing: border-box;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.cf-footer * {
    box-sizing: border-box;
}

.cf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* اشکال تزئینی */
.cf-shapes {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.cf-shape {
    position: absolute;
    border: 3px solid #3b82f6;
}

.cf-shape-1 {
    top: 40px;
    right: 40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    animation: cf-pulse 3s infinite;
}

.cf-shape-2 {
    bottom: 80px;
    left: 40px;
    width: 100px;
    height: 100px;
    transform: rotate(45deg);
}

.cf-shape-3 {
    top: 50%;
    left: 25%;
    width: 60px;
    height: 60px;
}

.cf-shape-4 {
    bottom: 40px;
    right: 25%;
    width: 50px;
    height: 50px;
    transform: rotate(12deg);
}

.cf-icon-1 {
    position: absolute;
    top: 80px;
    left: 80px;
    font-size: 40px;
    color: #3b82f6;
}

.cf-icon-2 {
    position: absolute;
    bottom: 100px;
    right: 100px;
    font-size: 30px;
    color: #3b82f6;
}

.cf-icon-3 {
    position: absolute;
    top: 33%;
    right: 33%;
    font-size: 25px;
    color: #3b82f6;
}

.cf-icon-4 {
    position: absolute;
    bottom: 33%;
    left: 33%;
    font-size: 35px;
    color: #3b82f6;
}

@keyframes cf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* گرید اصلی - هر ستون در فلکس‌باکس */
.cf-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    width: 100%;
}

.cf-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.cf-col h4 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3b82f6;
    display: inline-block;
}

/* لوگو */
.cf-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cf-logo {
    width: 50px;
    height: 50px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}

.cf-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cf-logo .dashicons {
    font-size: 25px;
    color: white;
}

.cf-logo-text h3 {
    font-size: 20px;
    margin: 0;
}

.cf-logo-text p {
    font-size: 14px;
    color: #93c5fd;
    margin: 0;
}

/* کادر متنی آبی */
.cf-blue-box {
    width: 100%;
    background: #2563eb;
    color: #fff;
    padding: 22px;
    border-radius: 12px;
    margin: 0 0 22px;
    line-height: 1.9;
    font-size: 15px;
    text-align: right;
}
.cf-blue-box p { margin: 0 0 8px; }
.cf-blue-box p:last-child { margin-bottom: 0; }
.cf-blue-box a { color: #fff; text-decoration: underline; }

/* QR Code در مرکز کادر سفید */
.cf-qr-code {
    width: 100%;
    min-height: 150px;
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.cf-qr-code a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.cf-qr-code img { display: block; object-fit: contain; margin: 0 auto; }

/* لینک‌ها */
.cf-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cf-links li {
    margin-bottom: 10px;
}

.cf-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.cf-links a:hover {
    color: #60a5fa;
}

.cf-dot {
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    transition: width 0.3s;
}

.cf-links a:hover .cf-dot {
    width: 12px;
}

/* اطلاعات تماس */
.cf-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cf-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #cbd5e1;
}

.cf-contact .dashicons {
    color: #60a5fa;
}

/* شبکه‌های اجتماعی */
.cf-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cf-social-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s;
    text-decoration: none;
    color: #0f1b3d;
}

.cf-social-icon:hover {
    transform: scale(1.1);
}

.cf-social-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cf-social-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* تصاویر زیر لینک‌های شبکه‌های اجتماعی */
.cf-left-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 6px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    width: 100%;
}
.cf-left-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    transition: transform .3s, box-shadow .3s;
    text-decoration: none;
    min-width: 0;
    width: 80px;
    height: 80px;
    box-sizing: border-box;
    overflow: hidden;
}
.cf-left-image:hover { transform: scale(1.04); box-shadow: 0 4px 15px rgba(59,130,246,.3); }
.cf-left-image img { display: block; object-fit: cover; max-width: 100%; max-height: 100%; }
.cf-left-image iframe,
.cf-left-image video,
.cf-left-image canvas { max-width: 100%; max-height: 100%; }
.cf-html-box > * { max-width: 100%; }

/* جستجو */
.cf-search {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-bottom: 20px;
    width: 100%;
}

.cf-search form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.cf-search-input {
    flex: 1;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.cf-search-input::placeholder {
    color: #94a3b8;
}

.cf-search-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.cf-search-button {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s;
}

.cf-search-button:hover {
    background: #1d4ed8;
}

/* کپی‌رایت */
.cf-copyright {
    text-align: center;
    margin-top: 20px;
}

.cf-copyright-text { margin: 5px 0; color: #cbd5e1; }
.cf-copyright-text p { margin: 5px 0; }
.cf-copyright-text a { color: #60a5fa; text-decoration: underline; }

.cf-designer {
    color: #60a5fa;
}

.cf-designer strong {
    color: white;
}

/* ریسپانسیو */
@media (max-width: 1024px) {
    .cf-col {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 640px) {
    .cf-col {
        flex: 0 0 100%;
    }
    
    .cf-search form {
        flex-direction: column;
    }
    
    .cf-left-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}