/* Business Outsourcing Page Styles */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.title-header h2{
    font-size: 45px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/business-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-underline {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
    animation: expandWidth 1.5s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }

    to {
        width: 80px;
    }
}


/* Outsourcing Reasons Section */
.outsourcing-reasons {
    padding: 80px 0;
    background: #fff;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.reason-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card,
.service-card {
    animation: slideInUp 0.8s ease-out;
    cursor: pointer;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for grid items */
.reason-card:nth-child(1) {
    animation-delay: 0.1s;
}

.reason-card:nth-child(2) {
    animation-delay: 0.2s;
}

.reason-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    margin-bottom: 25px;
}

.icon-number {
    color: #fff;
    font-weight: 500;
    font-size: 20px;
    z-index: 2;
    padding-top: 15px;
}

.reason-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.reason-content p {
    font-size: 15px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Additional Benefits */
.additional-benefits {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.benefits-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-3px);
}

.benefit-item i {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.benefit-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.benefit-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Services Section */
.services-section {
    padding: 100px 0 80px;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    padding: 20px;
    background: #fff;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}


.service-card h3 {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1f9968 0%, #408157 100%);
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/assets/pic/video-3.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
}

.cta-content {
    position: relative;
    z-index: 9;
}

.cta-content h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button .layui-icon {
    font-size: 12px;
}

.cta-button.primary {
    background: #ffffff;
    color: var(--primary-color);
}

.cta-button.primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.cta-button.secondary:hover {
    background: #ffffff;
    color: #1f9968;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
    }

    .reasons-grid,
    .services-grid,
    .benefits-grid,
    .process-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .reason-card,
    .service-card {
        padding: 30px 20px;
    }

    .cta-content h3 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        max-width: 250px;
    }

    .step-number::after {
        display: none;
    }
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .reason-content h3,
    .service-card h3,
    .process-step h3 {
        font-size: 18px;
    }

    .reason-content p,
    .service-card p,
    .process-step p {
        font-size: 14px;
    }

    .benefit-item h4 {
        font-size: 16px;
    }

    .benefit-item p {
        font-size: 13px;
    }


    .hero-section {
        min-height: 200px;
        height: auto;
    }

    .hero-content h1 {
        font-size: 23px;
        margin-bottom: 5px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .hero-underline{
        width: 50px;
        height: 3px;
    }

    @keyframes expandWidth {
        from {
            width: 0;
        }
    
        to {
            width: 50px;
        }
    }


    .outsourcing-reasons{
        padding: 40px 0;
    }

    .title-header h2{
        text-align: center;
        font-size: 30px;
        line-height: 35px;
    }
    .title-decoration{
        justify-content: center;
    }
    .decoration-line{
        width: 40px;
        flex: none;
    }
    .decoration-dot{
        width: 10px;
        height: 10px;
    }
    .title-header{
        margin-bottom: 20px;
    }
    .title-header p{
        font-size: 15px;
        text-align: center;
        margin: 10px 0;
    }

    .reasons-grid, .services-grid, .benefits-grid, .process-grid{
        gap: 20px;
        margin-top: 20px;
    }

    .reason-icon{
        width: 50px;
        height: 50px;
    }
    .icon-number{
        font-size: 20px;
    }
    .reason-content h3{
        font-size: 18px;
    }

    .additional-benefits{
        margin-top: 40px;
        padding-top: 20px;
    }

    .benefits-title{
        font-size: 22px;
        margin-bottom: 20px;
    }
    .benefits-grid{
        gap: 20px;
    }
    .benefit-item{
        padding: 20px;
    }
    .benefit-item h4{
        font-size: 18px;
    }


    .services-section{
        padding: 40px 0;
    }

    .cta-section{
        padding: 50px 0;
     }
     .cta-content h3{
        font-size: 22px;
        margin-bottom: 10px;
     }
     .cta-content p{
        font-size: 14px;
        margin-bottom: 15px;
     }
     .cta-button{
        padding: 5px 20px;
        font-size: 14px;
     }
     .cta-button .layui-icon{
        font-size: 9px;
     }
     .cta-buttons{
        gap: 15px;
     }

     .container{
        padding: 0 15px !important;
    }
}