/*cta.css*/
.cta-section {
    background: linear-gradient(135deg, #3d5280, #8697ca);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 18px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); /* Adds subtle shadow */
    padding: 60px 80px;
    position: relative; /* Required for absolute positioning of the image */
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}


.cta-text {
    flex: 1;
    margin: 0;
    padding-right: 15px;
    font-weight: 400;
}

.cta-image {
    position: absolute;
    left: 60%;
  
    transform: translateX(-50%);
    width: 200px; /* Adjust size as needed */
    animation: arrow-move 3s linear infinite; /* Customize speed as needed */
}

.cta-image img {
    width: 100%;
}


.cta-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #3d52a0;
    background: white;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    
    transform: scale(1.05); /* Adds a subtle hover effect */
    color: white;
    background-color: #8697ca;
    box-shadow: 0 0 8px rgba(61, 82, 160, 0.6); /*glow effect blue*/ 
}

.cta-arrow {
    margin-right: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cta-button:hover .cta-arrow {
    transform: translateX(5px);
}

@keyframes arrow-move {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

.cta-arrow {
    animation: arrow-move 1s infinite;
}
@keyframes pulse {
    0%, 100% {
        transform: scale(1); /* Original size */
    }
    50% {
        transform: scale(1.3); /* Slightly increase size */
    }
}
/* Mobile styles */
@media (max-width: 768px) {
    .cta-section {
        flex-direction: column; /* Stack elements vertically */
        padding: 40px 20px; /* Adjust padding for smaller screens */
    }

    .cta-text {
        text-align: center;
        margin-bottom: 20px; /* Adds spacing between text and image */
        padding-right: 0;
    }

    .cta-image {
        display: none;
    }

    .cta-button {
        font-size: 14px; /* Reduce button font size on smaller screens */
        animation: pulse 2s infinite;
    }
}
