/* CTA Section Mobile Responsiveness Fixes */

/* Base CTA styling improvements */
.join-team-cta {
    background: linear-gradient(135deg, #314ba3 0%, #38b6ff 100%);
    border-radius: 25px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.join-team-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../imgs/theme/pattern.svg') no-repeat center right;
    opacity: 0.1;
    z-index: 1;
}

.cta-content,
.cta-action {
    position: relative;
    z-index: 2;
}

/* Button styling */
.btn-white {
    background: white !important;
    color: #314ba3;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-white:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    text-decoration: none;
}

/* Tablet responsiveness (768px - 991px) */
@media (max-width: 991px) and (min-width: 769px) {
    .join-team-cta {
        padding: 50px 35px;
        border-radius: 20px;
    }
    
    .join-team-cta h2 {
        font-size: 2.2rem !important;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    .join-team-cta .font-md {
        font-size: 15px !important;
        line-height: 1.5;
    }
    
    .join-team-cta .font-sm {
        font-size: 13px !important;
        line-height: 1.4;
    }
    
    .btn-white {
        padding: 12px 28px;
        font-size: 13px;
    }
}

/* Mobile responsiveness (max-width: 768px) */
@media (max-width: 768px) {
    .join-team-cta {
        padding: 40px 25px;
        text-align: center;
        border-radius: 18px;
    }

    .join-team-cta h2 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .join-team-cta .font-md {
        font-size: 14px !important;
        line-height: 1.5;
    }

    .join-team-cta .font-sm {
        font-size: 12px !important;
        line-height: 1.4;
        margin-top: 12px !important;
    }

    .btn-white {
        padding: 10px 20px;
        font-size: 12px;
        margin-bottom: 8px;
        letter-spacing: 0.3px;
    }

    .cta-action {
        margin-top: 20px;
    }
}

/* Small mobile responsiveness (max-width: 576px) */
@media (max-width: 576px) {
    .join-team-cta {
        padding: 35px 20px;
        border-radius: 15px;
    }

    .join-team-cta h2 {
        font-size: 1.5rem !important;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .join-team-cta .font-md {
        font-size: 13px !important;
        line-height: 1.5;
    }

    .join-team-cta .font-sm {
        font-size: 11px !important;
        line-height: 1.4;
        margin-top: 10px !important;
    }

    .btn-white {
        padding: 8px 16px;
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .cta-action {
        margin-top: 18px;
    }
}

/* Extra small mobile responsiveness (max-width: 480px) */
@media (max-width: 480px) {
    .join-team-cta {
        padding: 30px 15px;
        border-radius: 12px;
    }

    .join-team-cta h2 {
        font-size: 1.3rem !important;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .join-team-cta .font-md {
        font-size: 12px !important;
        line-height: 1.4;
    }

    .join-team-cta .font-sm {
        font-size: 10px !important;
        line-height: 1.3;
        margin-top: 8px !important;
    }

    .btn-white {
        padding: 7px 14px;
        font-size: 10px;
        letter-spacing: 0.1px;
    }

    .cta-action {
        margin-top: 15px;
    }
}

/* Specific adjustments for different CTA content lengths */
.join-team-cta .cta-content p {
    margin-bottom: 0;
}

/* Ensure proper spacing between elements */
@media (max-width: 768px) {
    .join-team-cta .row {
        margin: 0;
    }
    
    .join-team-cta .col-lg-8,
    .join-team-cta .col-lg-4 {
        padding: 0;
    }
    
    .join-team-cta .col-lg-4 {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .join-team-cta .col-lg-4 {
        margin-top: 15px;
    }
}

/* Pattern background adjustments for mobile */
@media (max-width: 768px) {
    .join-team-cta::before {
        width: 40%;
        opacity: 0.05;
    }
}

@media (max-width: 576px) {
    .join-team-cta::before {
        width: 30%;
        opacity: 0.03;
    }
}

/* Additional mobile improvements for better readability */
@media (max-width: 768px) {
    .join-team-cta h2 {
        font-weight: 700 !important;
        text-align: center;
    }

    .join-team-cta .cta-content {
        text-align: center;
        margin-bottom: 20px;
    }

    .join-team-cta .cta-content p {
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .join-team-cta h2 {
        font-weight: 600 !important;
    }

    .join-team-cta .cta-content p {
        text-align: center;
        line-height: 1.4;
    }
}

/* Ensure consistent button styling across all pages */
.join-team-cta .btn-white {
    background: white !important;
    color: #314ba3 !important;
    border: 2px solid white !important;
    text-decoration: none !important;
}

.join-team-cta .btn-white:hover {
    background: transparent !important;
    color: white !important;
    border-color: white !important;
    text-decoration: none !important;
}

/* Additional general mobile improvements for better UX */
@media (max-width: 768px) {
    /* Section spacing adjustments */
    .section-box.mt-70 {
        margin-top: 40px !important;
    }

    .section-box.mt-80 {
        margin-top: 45px !important;
    }

    .section-box.mt-100 {
        margin-top: 50px !important;
    }

    /* Card spacing improvements */
    .card-grid,
    .card-grid-3,
    .card-services {
        margin-bottom: 20px !important;
    }

    /* Text improvements */
    .section-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }

    .font-md {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .font-sm {
        font-size: 12px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 576px) {
    /* Further mobile optimizations */
    .section-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 16px !important;
    }

    .font-md {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }

    .font-sm {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    /* Container padding adjustments */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
