
/* =================================
   ARTICLE CTA
================================= */

.eg-article-cta {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 23px 26px;
    margin: 28px 0;
    overflow: hidden;
    direction: rtl;
    border-radius: 15px;
    background: linear-gradient(115deg, #493016 0%, #68451E 55%, #80501D 100%);
    box-shadow: 0 8px 25px rgba(73, 48, 22, .13);
    box-sizing: border-box;
}

/* Background decoration */

.eg-article-cta::before,
.eg-article-cta::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    pointer-events: none;
}

.eg-article-cta::before {
    width: 210px;
    height: 210px;
    top: -145px;
    left: 17%;
    box-shadow:
        0 0 0 25px rgba(255,255,255,.025),
        0 0 0 50px rgba(255,255,255,.018);
    animation: eg-cta-float 9s ease-in-out infinite alternate;
}

.eg-article-cta::after {
    width: 120px;
    height: 120px;
    bottom: -90px;
    right: 32%;
    box-shadow: 0 0 0 20px rgba(255,255,255,.025);
}

@keyframes eg-cta-float {
    from {
        transform: translateY(-5px);
    }
    to {
        transform: translateY(15px);
    }
}

/* Text */

.eg-cta-content {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.eg-cta-label {
    display: inline-block;
    margin-bottom: 7px;
    color: #E7BD7D;
    font-family: "Tajawal", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}

.eg-cta-content h3 {
    margin: 0 0 6px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: "Alexandria", sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
}

.eg-cta-content p {
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(255,255,255,.85) !important;
    font-family: "Tajawal", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.7 !important;
}

/* Buttons container */

.eg-article-cta .eg-cta-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 10px;
}

/* Buttons */

.eg-article-cta .eg-cta-btn {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 118px;
    min-height: 48px;
    padding: 0 17px !important;
    margin: 0 !important;
    border: 1px solid transparent;
    border-radius: 9px;
    font-family: "Tajawal", sans-serif !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all .25s ease;
}

/* SVG icons */

.eg-article-cta .eg-cta-btn svg {
    display: block !important;
    width: 25px !important;
    height: 25px !important;
    min-width: 25px;
    max-width: 25px;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible;
}

/* WhatsApp button */

.eg-article-cta .eg-whatsapp {
    color: #493016 !important;
    background: #fff !important;
    border-color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
}

.eg-article-cta .eg-whatsapp svg {
    color: #68451E;
}

/* Call button */

.eg-article-cta .eg-call {
    color: #fff !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.55) !important;
}

.eg-article-cta .eg-call svg {
    color: #E7BD7D;
}

/* Hover */

.eg-article-cta .eg-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(0,0,0,.18);
}

.eg-article-cta .eg-whatsapp:hover {
    background: #F7EBD8 !important;
    border-color: #F7EBD8 !important;
}

.eg-article-cta .eg-call:hover {
    color: #493016 !important;
    background: #fff !important;
    border-color: #fff !important;
}

.eg-article-cta .eg-call:hover svg {
    color: #68451E;
}

/* =================================
   TABLET
================================= */

@media (max-width: 768px) {
    .eg-article-cta {
        gap: 14px;
        padding: 19px 18px;
    }

    .eg-cta-content h3 {
        font-size: 16px !important;
    }

    .eg-cta-content p {
        font-size: 13px !important;
    }

    .eg-article-cta .eg-cta-buttons {
        gap: 8px;
    }

    .eg-article-cta .eg-cta-btn {
        min-width: 105px;
        min-height: 44px;
        padding: 0 12px !important;
        gap: 7px;
        font-size: 14px !important;
    }

    .eg-article-cta .eg-cta-btn svg {
        width: 23px !important;
        height: 23px !important;
        min-width: 23px;
    }
}

/* =================================
   MOBILE
================================= */

@media (max-width: 560px) {
    .eg-article-cta {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 112px;
        align-items: center;
        gap: 10px;
        padding: 16px 13px;
        margin: 22px 0;
        border-radius: 12px;
    }

    .eg-cta-label {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .eg-cta-content h3 {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 4px !important;
    }

    .eg-cta-content p {
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    .eg-article-cta .eg-cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        width: 112px;
    }

    .eg-article-cta .eg-cta-btn {
        width: 100%;
        min-width: 0;
        min-height: 39px;
        padding: 0 9px !important;
        gap: 7px;
        border-radius: 8px;
        font-size: 13px !important;
    }

    .eg-article-cta .eg-cta-btn svg {
        width: 21px !important;
        height: 21px !important;
        min-width: 21px;
    }

    .eg-article-cta::before {
        width: 150px;
        height: 150px;
        top: -110px;
    }
}

/* =================================
   SMALL MOBILE
================================= */

@media (max-width: 380px) {
    .eg-article-cta {
        grid-template-columns: minmax(0, 1fr) 98px;
        gap: 8px;
        padding: 13px 10px;
    }

    .eg-cta-label {
        font-size: 10px;
    }

    .eg-cta-content h3 {
        font-size: 13px !important;
    }

    .eg-cta-content p {
        font-size: 11px !important;
        line-height: 1.55 !important;
    }

    .eg-article-cta .eg-cta-buttons {
        width: 98px;
        gap: 6px;
    }

    .eg-article-cta .eg-cta-btn {
        min-height: 36px;
        padding: 0 6px !important;
        gap: 5px;
        font-size: 12px !important;
    }

    .eg-article-cta .eg-cta-btn svg {
        width: 19px !important;
        height: 19px !important;
        min-width: 19px;
    }
}

/* Disable hover movement on touch devices */

@media (hover: none) {
    .eg-article-cta .eg-cta-btn:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Respect reduced motion */

@media (prefers-reduced-motion: reduce) {
    .eg-article-cta::before {
        animation: none;
    }

    .eg-article-cta .eg-cta-btn {
        transition: none;
    }
}
