/* HR Consulting & Payroll Outsourcing Page Styles */

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


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

/* 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/hr-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;
    }
}


/* Payroll Services Section */
.payroll-services {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-content {
    margin: 0 auto;
}

.service-intro h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

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

.service-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;
    text-align: center;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(31, 153, 104, 0.15);
}

.service-icon {
    margin-bottom: 25px;
}

.icon-triangle {
    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: 0 auto;
}

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

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

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

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

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

/* Stagger animation for grid items */
.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;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* HR Consulting Management Section */
.hr-consulting-management {
    padding: 80px 0;
    background: white;
}

.hr-services-content {
    max-width: 1000px;
    margin: 0 auto;
}

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

.hr-service-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
}

.hr-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 10px rgba(40, 167, 69, 0.15);
}

.hr-service-icon {

    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;
}

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

.hr-service-content h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.hr-service-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
    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) {
    .hero-title {
        font-size: 36px;
    }

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

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

    .hr-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
    }

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

    .container {
        padding: 0 15px;
    }

    .hero-section,
    .payroll-services,
    .hr-consulting-management,
    .cta-section {
        padding: 40px 0;
    }

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

    .hr-service-card {
        padding: 30px 20px;
    }
    .hero-title {
        font-size: 32px;
    }

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

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

    .service-card {
        padding: 25px 15px;
    }

    .hr-service-card {
        padding: 25px 15px;
    }

    .decoration-line {
        width: 40px;
        margin: 0 10px;
    }



    .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;
        }
    }

    .title-header h2{
        text-align: center;
        font-size: 20px;
        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;
    }

    .service-intro h3{
        font-size: 20px;
        margin-bottom: 20px;
    }

    .service-content h4{
        font-size: 18px;
    }

    
    .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;
     }

}