.ami-service-section {
    padding: 80px 20px;
}

.service-section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.ami-service-section.layout-image-left .service-section-container {
    grid-template-columns: 1fr 2fr;
}

.service-section-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.service-section-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(80, 138, 146, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.service-section-icon svg {
    width: 22px;
    height: 22px;
}

.service-section-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.service-section-tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-style: italic;
    color: #508A92;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.service-section-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4A4A4A;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-section-description p {
    margin: 0 0 16px 0;
}

.service-section-description p:last-child {
    margin-bottom: 0;
}

.service-section-list-box {
    background: rgba(243, 252, 243, 0.3);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(40, 175, 96, 0.1);
}

.service-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-section-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #1A1A1A;
    line-height: 1.5;
}

.service-section-list li:last-child {
    margin-bottom: 0;
}

.list-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.list-check svg {
    width: 22px;
    height: 22px;
}

.list-text {
    flex: 1;
}

.service-section-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.service-section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.service-section-image.has-video-card {
    position: relative;
}

.service-section-image.has-video-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    border-radius: 0 0 20px 20px;
    pointer-events: none;
}

.video-play-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 4px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play-center:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.05);
}

.video-play-center svg {
    width: 18px;
    height: 18px;
}

.video-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    z-index: 2;
}

.video-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.video-card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    line-height: 1.2;
    margin-top: 2px;
}

@media (max-width: 968px) {
    .ami-service-section {
        padding: 60px 20px;
    }
    
    .service-section-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .ami-service-section.layout-image-left .service-section-container {
        grid-template-columns: 1fr;
    }
    
    .service-section-image {
        order: -1;
    }
    
    .service-section-heading {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    .ami-service-section {
        padding: 50px 20px;
    }
    
    .service-section-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .service-section-icon {
        width: 44px;
        height: 44px;
    }
    
    .service-section-heading {
        font-size: 20px;
    }
    
    .service-section-tagline {
        font-size: 14px;
    }
    
    .service-section-description {
        font-size: 13px;
    }
    
    .service-section-list-box {
        padding: 18px;
    }
    
    .service-section-list li {
        font-size: 12px;
    }
    
    .video-card-title {
        font-size: 13px;
    }
    
    .video-card-subtitle {
        font-size: 11px;
    }
}

.service-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.service-video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}

.service-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
}

.service-video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-video-modal-close:hover {
    opacity: 1;
}

.service-video-modal-iframe-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.service-video-modal-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.service-video-trigger {
    cursor: pointer;
}
